Gentoo Archives: gentoo-commits

From: "Ulrich Mueller (ulm)" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-text/noweb: ChangeLog noweb-2.11b.ebuild
Date: Fri, 04 Jul 2008 03:48:27
Message-Id: E1KEcHV-0003sg-Ma@stork.gentoo.org
1 ulm 08/07/04 03:48:21
2
3 Modified: ChangeLog noweb-2.11b.ebuild
4 Log:
5 Optionally install Emacs noweb-mode, bug 230229.
6 (Portage version: 2.2_rc1/cvs/Linux 2.6.25-gentoo-r4 i686)
7
8 Revision Changes Path
9 1.33 app-text/noweb/ChangeLog
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/noweb/ChangeLog?rev=1.33&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/noweb/ChangeLog?rev=1.33&content-type=text/plain
13 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/noweb/ChangeLog?r1=1.32&r2=1.33
14
15 Index: ChangeLog
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/app-text/noweb/ChangeLog,v
18 retrieving revision 1.32
19 retrieving revision 1.33
20 diff -u -r1.32 -r1.33
21 --- ChangeLog 18 Jun 2008 06:31:03 -0000 1.32
22 +++ ChangeLog 4 Jul 2008 03:48:21 -0000 1.33
23 @@ -1,6 +1,11 @@
24 # ChangeLog for app-text/noweb
25 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
26 -# $Header: /var/cvsroot/gentoo-x86/app-text/noweb/ChangeLog,v 1.32 2008/06/18 06:31:03 wormo Exp $
27 +# $Header: /var/cvsroot/gentoo-x86/app-text/noweb/ChangeLog,v 1.33 2008/07/04 03:48:21 ulm Exp $
28 +
29 + 04 Jul 2008; Ulrich Mueller <ulm@g.o> +files/50noweb-gentoo.el,
30 + noweb-2.11b.ebuild:
31 + Optionally install Emacs noweb-mode. Ebuild and site-init file provided by
32 + Denys Duchier <denys.duchier@××××××××××××.fr>, bug 230229.
33
34 18 Jun 2008; Stephanie Lockwood-Childs <wormo@g.o>
35 noweb-2.11b.ebuild:
36
37
38
39 1.3 app-text/noweb/noweb-2.11b.ebuild
40
41 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/noweb/noweb-2.11b.ebuild?rev=1.3&view=markup
42 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/noweb/noweb-2.11b.ebuild?rev=1.3&content-type=text/plain
43 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/noweb/noweb-2.11b.ebuild?r1=1.2&r2=1.3
44
45 Index: noweb-2.11b.ebuild
46 ===================================================================
47 RCS file: /var/cvsroot/gentoo-x86/app-text/noweb/noweb-2.11b.ebuild,v
48 retrieving revision 1.2
49 retrieving revision 1.3
50 diff -u -r1.2 -r1.3
51 --- noweb-2.11b.ebuild 18 Jun 2008 06:31:03 -0000 1.2
52 +++ noweb-2.11b.ebuild 4 Jul 2008 03:48:21 -0000 1.3
53 @@ -1,24 +1,27 @@
54 # Copyright 1999-2008 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 -# $Header: /var/cvsroot/gentoo-x86/app-text/noweb/noweb-2.11b.ebuild,v 1.2 2008/06/18 06:31:03 wormo Exp $
57 +# $Header: /var/cvsroot/gentoo-x86/app-text/noweb/noweb-2.11b.ebuild,v 1.3 2008/07/04 03:48:21 ulm Exp $
58
59 -inherit eutils toolchain-funcs
60 +inherit eutils toolchain-funcs elisp-common
61
62 -SRC_URI="http://www.eecs.harvard.edu/~nr/noweb/dist/${P}.tgz"
63 -HOMEPAGE="http://www.eecs.harvard.edu/~nr/noweb/"
64 -LICENSE="freedist"
65 DESCRIPTION="a literate programming tool, lighter than web"
66 +HOMEPAGE="http://www.eecs.harvard.edu/~nr/noweb/"
67 +SRC_URI="http://www.eecs.harvard.edu/~nr/noweb/dist/${P}.tgz"
68
69 +LICENSE="freedist emacs? ( GPL-2 )"
70 SLOT="0"
71 -IUSE="examples"
72 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
73 +IUSE="emacs examples"
74
75 DEPEND="virtual/tex-base
76 dev-lang/icon
77 - sys-apps/debianutils"
78 + sys-apps/debianutils
79 + emacs? ( virtual/emacs )"
80
81 S=${WORKDIR}/${P}/src
82
83 +SITEFILE=50${PN}-gentoo.el
84 +
85 src_unpack() {
86 unpack ${A}
87 cd "${S}"
88 @@ -32,18 +35,22 @@
89
90 src_compile() {
91 # noweb tries to use notangle and noweb; see bug #50429
92 - ( cd c; emake ICONC="icont" CC=$(tc-getCC) CFLAGS="${CFLAGS}" LIBSRC="icon" ) || die
93 + ( cd c; emake ICONC="icont" CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LIBSRC="icon" ) || die
94 export PATH="${PATH}:${T}"
95 - emake ICONC="icont" CC=$(tc-getCC) BIN="${T}" LIB="${T}" LIBSRC="icon" install-code \
96 + emake ICONC="icont" CC="$(tc-getCC)" BIN="${T}" LIB="${T}" LIBSRC="icon" install-code \
97 || die "make temporal install failed."
98
99 - emake ICONC="icont" CC=$(tc-getCC) CFLAGS="${CFLAGS}" LIBSRC="icon" || die "make failed"
100 + emake ICONC="icont" CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LIBSRC="icon" || die "make failed"
101 # Set awk to awk not nawk
102 ./awkname awk
103 +
104 + if use emacs; then
105 + elisp-compile elisp/noweb-mode.el || die "elisp-compile failed"
106 + fi
107 }
108
109 src_install () {
110 - # It needs the directories to exisst first...
111 + # It needs the directories to exist first...
112 dodir /usr/bin
113 dodir /usr/libexec/${PN}
114 dodir /usr/share/man
115 @@ -63,9 +70,21 @@
116 doins examples/*
117 fi
118 dodoc CHANGES README
119 +
120 + if use emacs; then
121 + elisp-install ${PN} src/elisp/noweb-mode.{el,elc} \
122 + || die "elisp-install failed"
123 + elisp-site-file-install "${FILESDIR}/${SITEFILE}" \
124 + || die "elisp-site-file-install failed"
125 + fi
126 }
127
128 pkg_postinst() {
129 + use emacs && elisp-site-regen
130 einfo "Running texhash to complete installation.."
131 texhash
132 }
133 +
134 +pkg_postrm() {
135 + use emacs && elisp-site-regen
136 +}
137
138
139
140 --
141 gentoo-commits@l.g.o mailing list