From: | "Jonathan Callen (abcd)" <abcd@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-libs/lockdev: ChangeLog lockdev-1.0.3.1.2-r1.ebuild |
Date: | Fri, 02 Oct 2009 02:54:50 |
Message-Id: | E1MtYIB-00010S-VE@stork.gentoo.org |
1 | abcd 09/10/02 02:54:47 |
2 | |
3 | Modified: ChangeLog |
4 | Added: lockdev-1.0.3.1.2-r1.ebuild |
5 | Log: |
6 | Remove *.la files |
7 | (Portage version: -svn/cvs/Linux i686) |
8 | |
9 | Revision Changes Path |
10 | 1.3 dev-libs/lockdev/ChangeLog |
11 | |
12 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/lockdev/ChangeLog?rev=1.3&view=markup |
13 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/lockdev/ChangeLog?rev=1.3&content-type=text/plain |
14 | diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/lockdev/ChangeLog?r1=1.2&r2=1.3 |
15 | |
16 | Index: ChangeLog |
17 | =================================================================== |
18 | RCS file: /var/cvsroot/gentoo-x86/dev-libs/lockdev/ChangeLog,v |
19 | retrieving revision 1.2 |
20 | retrieving revision 1.3 |
21 | diff -u -r1.2 -r1.3 |
22 | --- ChangeLog 11 Sep 2009 08:22:23 -0000 1.2 |
23 | +++ ChangeLog 2 Oct 2009 02:54:47 -0000 1.3 |
24 | @@ -1,6 +1,12 @@ |
25 | # ChangeLog for dev-libs/lockdev |
26 | # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 | -# $Header: /var/cvsroot/gentoo-x86/dev-libs/lockdev/ChangeLog,v 1.2 2009/09/11 08:22:23 abcd Exp $ |
28 | +# $Header: /var/cvsroot/gentoo-x86/dev-libs/lockdev/ChangeLog,v 1.3 2009/10/02 02:54:47 abcd Exp $ |
29 | + |
30 | +*lockdev-1.0.3.1.2-r1 (02 Oct 2009) |
31 | + |
32 | + 02 Oct 2009; Jonathan Callen <abcd@g.o> |
33 | + +lockdev-1.0.3.1.2-r1.ebuild: |
34 | + Remove *.la files |
35 | |
36 | 11 Sep 2009; Jonathan Callen <abcd@g.o> lockdev-1.0.3.1.2.ebuild: |
37 | Keyword ~amd64 |
38 | |
39 | |
40 | |
41 | 1.1 dev-libs/lockdev/lockdev-1.0.3.1.2-r1.ebuild |
42 | |
43 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/lockdev/lockdev-1.0.3.1.2-r1.ebuild?rev=1.1&view=markup |
44 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/lockdev/lockdev-1.0.3.1.2-r1.ebuild?rev=1.1&content-type=text/plain |
45 | |
46 | Index: lockdev-1.0.3.1.2-r1.ebuild |
47 | =================================================================== |
48 | # Copyright 1999-2009 Gentoo Foundation |
49 | # Distributed under the terms of the GNU General Public License v2 |
50 | # $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 $ |
51 | |
52 | EAPI="2" |
53 | |
54 | GENTOO_DEPEND_ON_PERL="no" |
55 | inherit toolchain-funcs base perl-module eutils versionator autotools |
56 | |
57 | MAJOR=$(get_major_version) |
58 | MY_PV=$(get_version_component_range 1-3) |
59 | MY_P=${PN}-${MY_PV} |
60 | DEB_PV=$(replace_version_separator 3 '-') |
61 | DEB_P=${PN}_${DEB_PV} |
62 | |
63 | DESCRIPTION="Library for locking devices" |
64 | HOMEPAGE="http://packages.debian.org/source/sid/lockdev" |
65 | SRC_URI=" |
66 | mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${MY_PV}.orig.tar.gz |
67 | mirror://debian/pool/main/${PN:0:1}/${PN}/${DEB_P}.diff.gz |
68 | " |
69 | |
70 | LICENSE="LGPL-2.1" |
71 | SLOT="0" |
72 | KEYWORDS="~amd64 ~x86" |
73 | IUSE="perl" |
74 | |
75 | DEPEND=" |
76 | perl? ( dev-lang/perl[-build] ) |
77 | " |
78 | RDEPEND="${DEPEND}" |
79 | |
80 | PATCHES=( |
81 | "${FILESDIR}/${MY_P}-add-autotools.patch" |
82 | "${FILESDIR}/${MY_P}-fix-perl.patch" |
83 | ) |
84 | |
85 | S=${WORKDIR}/${PN}-${MY_PV} |
86 | PERL_S=${S}/LockDev |
87 | |
88 | pkg_setup() { |
89 | use perl && perl-module_pkg_setup |
90 | } |
91 | |
92 | src_prepare() { |
93 | cd "${WORKDIR}" |
94 | # Note: we do *not* want to be in ${S} for this, as that breaks the patch |
95 | epatch "${WORKDIR}/${DEB_P}.diff" |
96 | |
97 | cd "${S}" |
98 | base_src_prepare |
99 | |
100 | eautoreconf |
101 | } |
102 | |
103 | src_configure() { |
104 | econf |
105 | |
106 | if use perl; then |
107 | cd "${PERL_S}" |
108 | perl-module_src_configure |
109 | fi |
110 | } |
111 | |
112 | src_compile() { |
113 | emake || die "emake failed" |
114 | |
115 | if use perl; then |
116 | cd "${PERL_S}" |
117 | perl-module_src_compile |
118 | fi |
119 | } |
120 | |
121 | src_test() { |
122 | if use perl; then |
123 | cd "${PERL_S}" |
124 | SRC_TEST="do" |
125 | export LD_LIBRARY_PATH="${LD_LIBRARY_PATH:+${LD_LIBRARY_PATH}:}${S}/.libs" |
126 | perl-module_src_test |
127 | fi |
128 | } |
129 | |
130 | src_install() { |
131 | emake DESTDIR="${D}" install || die "make install failed" |
132 | |
133 | dodoc AUTHORS ChangeLog* debian/NEWS README.debug || die "dodoc failed" |
134 | newdoc debian/changelog changelog.debian || die "newdoc changelog.debian failed" |
135 | |
136 | if use perl; then |
137 | cd "${PERL_S}" |
138 | mytargets="pure_install" |
139 | docinto perl |
140 | perl-module_src_install |
141 | fi |
142 | |
143 | # Remove *.la files |
144 | find "${D}" -name "*.la" -exec rm {} + || die "removal of *.la files failed" |
145 | } |
146 | |
147 | pkg_preinst() { |
148 | use perl && perl-module_pkg_preinst |
149 | } |