1 |
aballier 10/10/30 22:23:23 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: noweb-2.11b-r2.ebuild |
5 |
Log: |
6 |
Respect ldflags (bug #338899) and use $(MAKE) for recursive make, by Wormo, bug #264273 |
7 |
|
8 |
(Portage version: 2.2.0_alpha2/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.48 app-text/noweb/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/noweb/ChangeLog?rev=1.48&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/noweb/ChangeLog?rev=1.48&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/noweb/ChangeLog?r1=1.47&r2=1.48 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-text/noweb/ChangeLog,v |
20 |
retrieving revision 1.47 |
21 |
retrieving revision 1.48 |
22 |
diff -u -r1.47 -r1.48 |
23 |
--- ChangeLog 30 Oct 2010 22:01:43 -0000 1.47 |
24 |
+++ ChangeLog 30 Oct 2010 22:23:22 -0000 1.48 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for app-text/noweb |
27 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-text/noweb/ChangeLog,v 1.47 2010/10/30 22:01:43 aballier Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/app-text/noweb/ChangeLog,v 1.48 2010/10/30 22:23:22 aballier Exp $ |
30 |
+ |
31 |
+*noweb-2.11b-r2 (30 Oct 2010) |
32 |
+ |
33 |
+ 30 Oct 2010; Alexis Ballier <aballier@g.o> +noweb-2.11b-r2.ebuild, |
34 |
+ +files/noweb-2.11b-ldflags.patch, +files/noweb-2.11b-recmake.patch: |
35 |
+ Respect ldflags (bug #338899) and use $(MAKE) for recursive make, by |
36 |
+ Wormo, bug #264273 |
37 |
|
38 |
30 Oct 2010; Alexis Ballier <aballier@g.o> -noweb-2.9-r5.ebuild, |
39 |
-noweb-2.9-r6.ebuild, -files/noweb-2.9-gentoo.diff, -noweb-2.11b.ebuild: |
40 |
|
41 |
|
42 |
|
43 |
1.1 app-text/noweb/noweb-2.11b-r2.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/noweb/noweb-2.11b-r2.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/noweb/noweb-2.11b-r2.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: noweb-2.11b-r2.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2010 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/app-text/noweb/noweb-2.11b-r2.ebuild,v 1.1 2010/10/30 22:23:22 aballier Exp $ |
53 |
|
54 |
inherit eutils toolchain-funcs elisp-common |
55 |
|
56 |
DESCRIPTION="a literate programming tool, lighter than web" |
57 |
HOMEPAGE="http://www.eecs.harvard.edu/~nr/noweb/" |
58 |
SRC_URI="http://www.eecs.harvard.edu/~nr/noweb/dist/${P}.tgz" |
59 |
|
60 |
LICENSE="freedist emacs? ( GPL-2 )" |
61 |
SLOT="0" |
62 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
63 |
IUSE="emacs examples" |
64 |
|
65 |
DEPEND="virtual/tex-base |
66 |
dev-lang/icon |
67 |
sys-apps/debianutils |
68 |
emacs? ( virtual/emacs )" |
69 |
RDEPEND=${DEPEND} |
70 |
|
71 |
S=${WORKDIR}/${P}/src |
72 |
|
73 |
SITEFILE=50${PN}-gentoo.el |
74 |
|
75 |
src_unpack() { |
76 |
unpack ${A} |
77 |
cd "${S}" |
78 |
|
79 |
# glibc2.10 compat (bug 270757) |
80 |
# mkdir d && cp -r c/* d/ |
81 |
sed "s:getline (:getline_nonlibc (:" -i c/getline.{c,h} || die |
82 |
sed "s:getline(:getline_nonlibc(:" -i c/{notangle.c,getline.c,finduses.c} || die |
83 |
# diff -u d/ c/ |
84 |
|
85 |
epatch "${FILESDIR}"/${PN}-2.9-security.patch |
86 |
# dont run texhash... |
87 |
sed -i -e "s/texhash/true/" Makefile |
88 |
# dont strip... |
89 |
sed -i -e "s/strip/true/" Makefile |
90 |
|
91 |
cd "${WORKDIR}/${P}" |
92 |
epatch "${FILESDIR}"/${P}-recmake.patch |
93 |
epatch "${FILESDIR}"/${P}-ldflags.patch |
94 |
} |
95 |
|
96 |
src_compile() { |
97 |
# noweb tries to use notangle and noweb; see bug #50429 |
98 |
( cd c; emake ICONC="icont" CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LIBSRC="icon" ) || die |
99 |
export PATH="${PATH}:${T}" |
100 |
emake ICONC="icont" CC="$(tc-getCC)" BIN="${T}" LIB="${T}" LIBSRC="icon" install-code \ |
101 |
|| die "make temporal install failed." |
102 |
|
103 |
emake ICONC="icont" CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LIBSRC="icon" || die "make failed" |
104 |
# Set awk to awk not nawk |
105 |
./awkname awk |
106 |
|
107 |
if use emacs; then |
108 |
elisp-compile elisp/noweb-mode.el || die "elisp-compile failed" |
109 |
fi |
110 |
} |
111 |
|
112 |
src_install () { |
113 |
# It needs the directories to exist first... |
114 |
dodir /usr/bin |
115 |
dodir /usr/libexec/${PN} |
116 |
dodir /usr/share/man |
117 |
dodir /usr/share/texmf/tex/inputs |
118 |
emake ICONC="icont" \ |
119 |
BIN="${D}/usr/bin" \ |
120 |
LIBSRC="icon" \ |
121 |
LIBNAME="/usr/libexec/${PN}" \ |
122 |
LIB="${D}/usr/libexec/${PN}" \ |
123 |
MAN="${D}/usr/share/man" \ |
124 |
TEXNAME="/usr/share/texmf/tex/inputs" \ |
125 |
TEXINPUTS="${D}/usr/share/texmf/tex/inputs" \ |
126 |
install || die "make install failed" |
127 |
cd "${WORKDIR}/${P}" |
128 |
if use examples; then |
129 |
insinto /usr/share/doc/${PF}/examples |
130 |
doins examples/* |
131 |
fi |
132 |
dodoc CHANGES README |
133 |
|
134 |
if use emacs; then |
135 |
elisp-install ${PN} src/elisp/noweb-mode.{el,elc} \ |
136 |
|| die "elisp-install failed" |
137 |
elisp-site-file-install "${FILESDIR}/${SITEFILE}" \ |
138 |
|| die "elisp-site-file-install failed" |
139 |
fi |
140 |
} |
141 |
|
142 |
pkg_postinst() { |
143 |
use emacs && elisp-site-regen |
144 |
einfo "Running texhash to complete installation.." |
145 |
texhash |
146 |
} |
147 |
|
148 |
pkg_postrm() { |
149 |
use emacs && elisp-site-regen |
150 |
} |