1 |
drizzt 09/03/26 14:24:48 |
2 |
|
3 |
Modified: gnulib-2009.03.03.14.07.45.ebuild ChangeLog |
4 |
Log: |
5 |
Create a static libgnu.a. |
6 |
Backport from prefix overlay |
7 |
(Portage version: 2.2_rc23/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.3 dev-libs/gnulib/gnulib-2009.03.03.14.07.45.ebuild |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/gnulib/gnulib-2009.03.03.14.07.45.ebuild?rev=1.3&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/gnulib/gnulib-2009.03.03.14.07.45.ebuild?rev=1.3&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/gnulib/gnulib-2009.03.03.14.07.45.ebuild?r1=1.2&r2=1.3 |
15 |
|
16 |
Index: gnulib-2009.03.03.14.07.45.ebuild |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-libs/gnulib/gnulib-2009.03.03.14.07.45.ebuild,v |
19 |
retrieving revision 1.2 |
20 |
retrieving revision 1.3 |
21 |
diff -u -r1.2 -r1.3 |
22 |
--- gnulib-2009.03.03.14.07.45.ebuild 4 Mar 2009 15:37:25 -0000 1.2 |
23 |
+++ gnulib-2009.03.03.14.07.45.ebuild 26 Mar 2009 14:24:48 -0000 1.3 |
24 |
@@ -1,8 +1,8 @@ |
25 |
# Copyright 1999-2009 Gentoo Foundation |
26 |
# Distributed under the terms of the GNU General Public License v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/gnulib/gnulib-2009.03.03.14.07.45.ebuild,v 1.2 2009/03/04 15:37:25 drizzt Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/gnulib/gnulib-2009.03.03.14.07.45.ebuild,v 1.3 2009/03/26 14:24:48 drizzt Exp $ |
29 |
|
30 |
-inherit eutils |
31 |
+inherit eutils autotools |
32 |
|
33 |
DESCRIPTION="Gnulib is a library of common routines intended to be shared at the source level." |
34 |
HOMEPAGE="http://www.gnu.org/software/gnulib" |
35 |
@@ -32,8 +32,17 @@ |
36 |
RDEPEND="" |
37 |
|
38 |
S="${WORKDIR}"/${PN} |
39 |
+MY_S="${WORKDIR}"/${P} |
40 |
|
41 |
src_unpack() { |
42 |
+ local requested_gnulib_modules |
43 |
+ |
44 |
+ case ${CHOST} in |
45 |
+ *-freebsd*) |
46 |
+ requested_gnulib_modules="mathl strndup" |
47 |
+ ;; |
48 |
+ esac |
49 |
+ |
50 |
unpack ${A} |
51 |
cd "${S}" || die |
52 |
epatch "${FILESDIR}"/${PN}-2008.07.23-rpl_getopt.patch |
53 |
@@ -41,12 +50,36 @@ |
54 |
|
55 |
# Remove the broken pxref |
56 |
sed -i '$d' doc/ld-version-script.texi || die "cannot fix ld-version-script.texi" |
57 |
+ |
58 |
+ [[ -z "$requested_gnulib_modules" ]] && return |
59 |
+ |
60 |
+ "${S}"/gnulib-tool --create-testdir --dir="${MY_S}" \ |
61 |
+ ${requested_gnulib_modules} || die |
62 |
+ |
63 |
+ cd "${MY_S}" || die |
64 |
+ |
65 |
+ # define both libgnu.a and the headers as to-be-installed |
66 |
+ LANG=C \ |
67 |
+ sed -e ' |
68 |
+ s,noinst_HEADERS,include_HEADERS,; |
69 |
+ s,noinst_LIBRARIES,lib_LIBRARIES,; |
70 |
+ s,noinst_LTLIBRARIES,lib_LTLIBRARIES,; |
71 |
+ s,EXTRA_DIST =$,&\ |
72 |
+EXTRA_HEADERS =,; |
73 |
+ s,BUILT_SOURCES += \([/a-zA-Z0-9_-][/a-zA-Z0-9_-]*\.h\|\$([_A-Z0-9][_A-Z0-9]*_H)\)$,&\ |
74 |
+include_HEADERS += \1,; |
75 |
+ ' -i gllib/Makefile.am || die "cannot fix gllib/Makefile.am" |
76 |
+ |
77 |
+ eautoreconf |
78 |
} |
79 |
|
80 |
src_compile() { |
81 |
if use doc; then |
82 |
emake -C doc info html || die "emake failed" |
83 |
fi |
84 |
+ cd "${MY_S}" || return |
85 |
+ econf --prefix=/usr/$(get_libdir)/${PN} |
86 |
+ emake || die "cannot make ${P}" |
87 |
} |
88 |
|
89 |
src_install() { |
90 |
@@ -69,4 +102,7 @@ |
91 |
|
92 |
# create and install the wrapper |
93 |
dosym /usr/share/${PN}/gnulib-tool /usr/bin/gnulib-tool |
94 |
+ |
95 |
+ cd "${MY_S}" || return |
96 |
+ emake install DESTDIR="${D}" || die "make install failed" |
97 |
} |
98 |
|
99 |
|
100 |
|
101 |
1.9 dev-libs/gnulib/ChangeLog |
102 |
|
103 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/gnulib/ChangeLog?rev=1.9&view=markup |
104 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/gnulib/ChangeLog?rev=1.9&content-type=text/plain |
105 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/gnulib/ChangeLog?r1=1.8&r2=1.9 |
106 |
|
107 |
Index: ChangeLog |
108 |
=================================================================== |
109 |
RCS file: /var/cvsroot/gentoo-x86/dev-libs/gnulib/ChangeLog,v |
110 |
retrieving revision 1.8 |
111 |
retrieving revision 1.9 |
112 |
diff -u -r1.8 -r1.9 |
113 |
--- ChangeLog 4 Mar 2009 15:37:25 -0000 1.8 |
114 |
+++ ChangeLog 26 Mar 2009 14:24:48 -0000 1.9 |
115 |
@@ -1,6 +1,10 @@ |
116 |
# ChangeLog for dev-libs/gnulib |
117 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
118 |
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/gnulib/ChangeLog,v 1.8 2009/03/04 15:37:25 drizzt Exp $ |
119 |
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/gnulib/ChangeLog,v 1.9 2009/03/26 14:24:48 drizzt Exp $ |
120 |
+ |
121 |
+ 26 Mar 2009; Timothy Redaelli <drizzt@g.o> |
122 |
+ gnulib-2009.03.03.14.07.45.ebuild: |
123 |
+ Create a static libgnu.a. Backport from prefix overlay |
124 |
|
125 |
04 Mar 2009; Timothy Redaelli <drizzt@g.o> |
126 |
gnulib-2009.03.03.14.07.45.ebuild, gnulib-9999-r1.ebuild: |