diff options
author | Jonathan Callen <abcd@gentoo.org> | 2009-10-02 02:54:47 +0000 |
---|---|---|
committer | Jonathan Callen <abcd@gentoo.org> | 2009-10-02 02:54:47 +0000 |
commit | 8f33e7a021e6f32edd756c0e38fc91ba1d814618 (patch) | |
tree | af0ca00949506530aa1b00b097eb1d7dbeea9512 /dev-libs/lockdev | |
parent | Remove *.la files (diff) | |
download | gentoo-2-8f33e7a021e6f32edd756c0e38fc91ba1d814618.tar.gz gentoo-2-8f33e7a021e6f32edd756c0e38fc91ba1d814618.tar.bz2 gentoo-2-8f33e7a021e6f32edd756c0e38fc91ba1d814618.zip |
Remove *.la files
(Portage version: -svn/cvs/Linux i686)
Diffstat (limited to 'dev-libs/lockdev')
-rw-r--r-- | dev-libs/lockdev/ChangeLog | 8 | ||||
-rw-r--r-- | dev-libs/lockdev/lockdev-1.0.3.1.2-r1.ebuild | 102 |
2 files changed, 109 insertions, 1 deletions
diff --git a/dev-libs/lockdev/ChangeLog b/dev-libs/lockdev/ChangeLog index 6b5220aeaba3..a648144f6f83 100644 --- a/dev-libs/lockdev/ChangeLog +++ b/dev-libs/lockdev/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-libs/lockdev # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/lockdev/ChangeLog,v 1.2 2009/09/11 08:22:23 abcd Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/lockdev/ChangeLog,v 1.3 2009/10/02 02:54:47 abcd Exp $ + +*lockdev-1.0.3.1.2-r1 (02 Oct 2009) + + 02 Oct 2009; Jonathan Callen <abcd@gentoo.org> + +lockdev-1.0.3.1.2-r1.ebuild: + Remove *.la files 11 Sep 2009; Jonathan Callen <abcd@gentoo.org> lockdev-1.0.3.1.2.ebuild: Keyword ~amd64 diff --git a/dev-libs/lockdev/lockdev-1.0.3.1.2-r1.ebuild b/dev-libs/lockdev/lockdev-1.0.3.1.2-r1.ebuild new file mode 100644 index 000000000000..3df7250fd648 --- /dev/null +++ b/dev-libs/lockdev/lockdev-1.0.3.1.2-r1.ebuild @@ -0,0 +1,102 @@ +# Copyright 1999-2009 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-r1.ebuild,v 1.1 2009/10/02 02:54:47 abcd Exp $ + +EAPI="2" + +GENTOO_DEPEND_ON_PERL="no" +inherit toolchain-funcs base perl-module eutils versionator autotools + +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 ~x86" +IUSE="perl" + +DEPEND=" + perl? ( dev-lang/perl[-build] ) +" +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}" + # Note: we do *not* want to be in ${S} for this, as that breaks the patch + epatch "${WORKDIR}/${DEB_P}.diff" + + cd "${S}" + base_src_prepare + + eautoreconf +} + +src_configure() { + econf + + if use perl; then + cd "${PERL_S}" + perl-module_src_configure + fi +} + +src_compile() { + emake || die "emake failed" + + if use perl; then + cd "${PERL_S}" + perl-module_src_compile + fi +} + +src_test() { + if use perl; then + cd "${PERL_S}" + SRC_TEST="do" + export LD_LIBRARY_PATH="${LD_LIBRARY_PATH:+${LD_LIBRARY_PATH}:}${S}/.libs" + perl-module_src_test + fi +} + +src_install() { + emake DESTDIR="${D}" install || die "make install failed" + + dodoc AUTHORS ChangeLog* debian/NEWS README.debug || die "dodoc failed" + newdoc debian/changelog changelog.debian || die "newdoc changelog.debian failed" + + if use perl; then + cd "${PERL_S}" + mytargets="pure_install" + docinto perl + perl-module_src_install + fi + + # Remove *.la files + find "${D}" -name "*.la" -exec rm {} + || die "removal of *.la files failed" +} + +pkg_preinst() { + use perl && perl-module_pkg_preinst +} |