1 |
mgorny 14/05/21 18:40:29 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: lockdev-1.0.3.1.2-r3.ebuild |
5 |
Log: |
6 |
Enable multilib support, as a dependency of libgphoto2. |
7 |
|
8 |
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!) |
9 |
|
10 |
Revision Changes Path |
11 |
1.14 dev-libs/lockdev/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/lockdev/ChangeLog?rev=1.14&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/lockdev/ChangeLog?rev=1.14&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/lockdev/ChangeLog?r1=1.13&r2=1.14 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-libs/lockdev/ChangeLog,v |
20 |
retrieving revision 1.13 |
21 |
retrieving revision 1.14 |
22 |
diff -u -r1.13 -r1.14 |
23 |
--- ChangeLog 5 Mar 2014 15:38:02 -0000 1.13 |
24 |
+++ ChangeLog 21 May 2014 18:40:29 -0000 1.14 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for dev-libs/lockdev |
27 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/lockdev/ChangeLog,v 1.13 2014/03/05 15:38:02 jer Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/lockdev/ChangeLog,v 1.14 2014/05/21 18:40:29 mgorny Exp $ |
30 |
+ |
31 |
+*lockdev-1.0.3.1.2-r3 (21 May 2014) |
32 |
+ |
33 |
+ 21 May 2014; Michał Górny <mgorny@g.o> +lockdev-1.0.3.1.2-r3.ebuild, |
34 |
+ files/lockdev-1.0.3-add-autotools.patch: |
35 |
+ Enable multilib support, as a dependency of libgphoto2. |
36 |
|
37 |
05 Mar 2014; Jeroen Roovers <jer@g.o> lockdev-1.0.3.1.2-r2.ebuild: |
38 |
Stable for HPPA (bug #502206). |
39 |
|
40 |
|
41 |
|
42 |
1.1 dev-libs/lockdev/lockdev-1.0.3.1.2-r3.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/lockdev/lockdev-1.0.3.1.2-r3.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/lockdev/lockdev-1.0.3.1.2-r3.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: lockdev-1.0.3.1.2-r3.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2014 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $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 $ |
52 |
|
53 |
EAPI=5 |
54 |
|
55 |
GENTOO_DEPEND_ON_PERL="no" |
56 |
inherit toolchain-funcs perl-module eutils versionator autotools multilib-minimal |
57 |
|
58 |
MAJOR=$(get_major_version) |
59 |
MY_PV=$(get_version_component_range 1-3) |
60 |
MY_P=${PN}-${MY_PV} |
61 |
DEB_PV=$(replace_version_separator 3 '-') |
62 |
DEB_P=${PN}_${DEB_PV} |
63 |
|
64 |
DESCRIPTION="Library for locking devices" |
65 |
HOMEPAGE="http://packages.debian.org/source/sid/lockdev" |
66 |
SRC_URI=" |
67 |
mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${MY_PV}.orig.tar.gz |
68 |
mirror://debian/pool/main/${PN:0:1}/${PN}/${DEB_P}.diff.gz |
69 |
" |
70 |
|
71 |
LICENSE="LGPL-2.1" |
72 |
SLOT="0" |
73 |
KEYWORDS="~amd64 ~arm ~hppa ~x86" |
74 |
IUSE="perl" |
75 |
|
76 |
DEPEND="" |
77 |
RDEPEND="${DEPEND}" |
78 |
|
79 |
PATCHES=( |
80 |
"${FILESDIR}/${MY_P}-add-autotools.patch" |
81 |
"${FILESDIR}/${MY_P}-fix-perl.patch" |
82 |
) |
83 |
|
84 |
S=${WORKDIR}/${PN}-${MY_PV} |
85 |
PERL_S=${S}/LockDev |
86 |
|
87 |
pkg_setup() { |
88 |
use perl && perl-module_pkg_setup |
89 |
} |
90 |
|
91 |
src_prepare() { |
92 |
cd "${WORKDIR}" || die |
93 |
# Note: we do *not* want to be in ${S} for this, as that breaks the patch |
94 |
epatch "${WORKDIR}/${DEB_P}.diff" |
95 |
|
96 |
cd "${S}" || die |
97 |
epatch "${PATCHES[@]}" |
98 |
epatch_user |
99 |
|
100 |
eautoreconf |
101 |
|
102 |
# perl module build |
103 |
multilib_copy_sources |
104 |
} |
105 |
|
106 |
multilib_src_configure() { |
107 |
econf |
108 |
|
109 |
if multilib_is_native_abi && use perl; then |
110 |
cd "${PERL_S}" || die |
111 |
perl-module_src_configure |
112 |
fi |
113 |
} |
114 |
|
115 |
multilib_src_compile() { |
116 |
emake |
117 |
|
118 |
if multilib_is_native_abi && use perl; then |
119 |
cd "${PERL_S}" || die |
120 |
perl-module_src_compile |
121 |
fi |
122 |
} |
123 |
|
124 |
multilib_src_test() { |
125 |
if multilib_is_native_abi && use perl; then |
126 |
cd "${PERL_S}" || die |
127 |
SRC_TEST="do" |
128 |
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH:+${LD_LIBRARY_PATH}:}${BUILD_DIR}/.libs" |
129 |
perl-module_src_test |
130 |
fi |
131 |
} |
132 |
|
133 |
multilib_src_install() { |
134 |
emake DESTDIR="${D}" install |
135 |
|
136 |
if multilib_is_native_abi && use perl; then |
137 |
cd "${PERL_S}" || die |
138 |
mytargets="pure_install" |
139 |
perl-module_src_install |
140 |
fi |
141 |
} |
142 |
|
143 |
multilib_src_install_all() { |
144 |
dodoc AUTHORS ChangeLog* debian/NEWS README.debug |
145 |
newdoc debian/changelog changelog.debian |
146 |
|
147 |
prune_libtool_files --all |
148 |
} |
149 |
|
150 |
pkg_preinst() { |
151 |
use perl && perl-module_pkg_preinst |
152 |
} |