diff options
author | Michał Górny <mgorny@gentoo.org> | 2014-05-21 18:40:29 +0000 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2014-05-21 18:40:29 +0000 |
commit | 548789bfb9bba00d9eaebde2fcde9b1ac5b67630 (patch) | |
tree | a8ff13e13159df0762fa4098fb12d5fd3e17fac4 /dev-libs | |
parent | Enable multilib support, as a dependency of libgphoto2. (diff) | |
download | gentoo-2-548789bfb9bba00d9eaebde2fcde9b1ac5b67630.tar.gz gentoo-2-548789bfb9bba00d9eaebde2fcde9b1ac5b67630.tar.bz2 gentoo-2-548789bfb9bba00d9eaebde2fcde9b1ac5b67630.zip |
Enable multilib support, as a dependency of libgphoto2.
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/lockdev/ChangeLog | 8 | ||||
-rw-r--r-- | dev-libs/lockdev/files/lockdev-1.0.3-add-autotools.patch | 2 | ||||
-rw-r--r-- | dev-libs/lockdev/lockdev-1.0.3.1.2-r3.ebuild | 104 |
3 files changed, 112 insertions, 2 deletions
diff --git a/dev-libs/lockdev/ChangeLog b/dev-libs/lockdev/ChangeLog index 0a979f0e6b9a..e1eac38c4b90 100644 --- a/dev-libs/lockdev/ChangeLog +++ b/dev-libs/lockdev/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-libs/lockdev # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/lockdev/ChangeLog,v 1.13 2014/03/05 15:38:02 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/lockdev/ChangeLog,v 1.14 2014/05/21 18:40:29 mgorny Exp $ + +*lockdev-1.0.3.1.2-r3 (21 May 2014) + + 21 May 2014; Michał Górny <mgorny@gentoo.org> +lockdev-1.0.3.1.2-r3.ebuild, + files/lockdev-1.0.3-add-autotools.patch: + Enable multilib support, as a dependency of libgphoto2. 05 Mar 2014; Jeroen Roovers <jer@gentoo.org> lockdev-1.0.3.1.2-r2.ebuild: Stable for HPPA (bug #502206). diff --git a/dev-libs/lockdev/files/lockdev-1.0.3-add-autotools.patch b/dev-libs/lockdev/files/lockdev-1.0.3-add-autotools.patch index 0c223b35cb8b..f54bcb8fd72c 100644 --- a/dev-libs/lockdev/files/lockdev-1.0.3-add-autotools.patch +++ b/dev-libs/lockdev/files/lockdev-1.0.3-add-autotools.patch @@ -26,7 +26,7 @@ Updated by Jonathan Callen <abcd@gentoo.org> 2009-09-11 + +install-data-hook: + for page in $(manpage_links); do \ -+ $(LN_S) lockdev.3 $(DESTDIR)$(man3dir)/$${page} ; \ ++ $(LN_S) -f lockdev.3 $(DESTDIR)$(man3dir)/$${page} ; \ + done --- configure.ac +++ configure.ac diff --git a/dev-libs/lockdev/lockdev-1.0.3.1.2-r3.ebuild b/dev-libs/lockdev/lockdev-1.0.3.1.2-r3.ebuild new file mode 100644 index 000000000000..0ccbab4f5267 --- /dev/null +++ b/dev-libs/lockdev/lockdev-1.0.3.1.2-r3.ebuild @@ -0,0 +1,104 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/lockdev/lockdev-1.0.3.1.2-r3.ebuild,v 1.1 2014/05/21 18:40:29 mgorny Exp $ + +EAPI=5 + +GENTOO_DEPEND_ON_PERL="no" +inherit toolchain-funcs perl-module eutils versionator autotools multilib-minimal + +MAJOR=$(get_major_version) +MY_PV=$(get_version_component_range 1-3) +MY_P=${PN}-${MY_PV} +DEB_PV=$(replace_version_separator 3 '-') +DEB_P=${PN}_${DEB_PV} + +DESCRIPTION="Library for locking devices" +HOMEPAGE="http://packages.debian.org/source/sid/lockdev" +SRC_URI=" + mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${MY_PV}.orig.tar.gz + mirror://debian/pool/main/${PN:0:1}/${PN}/${DEB_P}.diff.gz +" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~arm ~hppa ~x86" +IUSE="perl" + +DEPEND="" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}/${MY_P}-add-autotools.patch" + "${FILESDIR}/${MY_P}-fix-perl.patch" +) + +S=${WORKDIR}/${PN}-${MY_PV} +PERL_S=${S}/LockDev + +pkg_setup() { + use perl && perl-module_pkg_setup +} + +src_prepare() { + cd "${WORKDIR}" || die + # Note: we do *not* want to be in ${S} for this, as that breaks the patch + epatch "${WORKDIR}/${DEB_P}.diff" + + cd "${S}" || die + epatch "${PATCHES[@]}" + epatch_user + + eautoreconf + + # perl module build + multilib_copy_sources +} + +multilib_src_configure() { + econf + + if multilib_is_native_abi && use perl; then + cd "${PERL_S}" || die + perl-module_src_configure + fi +} + +multilib_src_compile() { + emake + + if multilib_is_native_abi && use perl; then + cd "${PERL_S}" || die + perl-module_src_compile + fi +} + +multilib_src_test() { + if multilib_is_native_abi && use perl; then + cd "${PERL_S}" || die + SRC_TEST="do" + export LD_LIBRARY_PATH="${LD_LIBRARY_PATH:+${LD_LIBRARY_PATH}:}${BUILD_DIR}/.libs" + perl-module_src_test + fi +} + +multilib_src_install() { + emake DESTDIR="${D}" install + + if multilib_is_native_abi && use perl; then + cd "${PERL_S}" || die + mytargets="pure_install" + perl-module_src_install + fi +} + +multilib_src_install_all() { + dodoc AUTHORS ChangeLog* debian/NEWS README.debug + newdoc debian/changelog changelog.debian + + prune_libtool_files --all +} + +pkg_preinst() { + use perl && perl-module_pkg_preinst +} |