blob: 6cf0b6b52838004244ac5f6de0d782b15fc9665c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/cweb/cweb-3.64-r1.ebuild,v 1.2 2009/09/23 17:43:43 patrick Exp $
EAPI="2"
inherit eutils toolchain-funcs
S=${WORKDIR}
DESCRIPTION="Knuth's and Levy's C/C++ documenting system"
SRC_URI="ftp://labrea.stanford.edu/pub/cweb/cweb-${PV}.tar.gz"
HOMEPAGE="http://www-cs-faculty.stanford.edu/~knuth/cweb.html"
SLOT="0"
LICENSE="BSD"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE=""
DEPEND="!app-text/tetex
!app-text/texlive-core
!app-text/ptex"
src_prepare() {
epatch "${FILESDIR}/${P}-make.patch"
}
src_compile() {
tc-export CC
# bug #258130
emake -j1 all CFLAGS="${CFLAGS}" LINKFLAGS="${LDFLAGS}" || die
}
src_install () {
dobin ctangle cweave
doman cweb.1
dodoc README cwebman.tex
dodir /usr/share/texmf/tex/generic
insinto /usr/share/texmf/tex/generic
doins cwebmac.tex
dodir /usr/lib/cweb
insinto /usr/lib/cweb
doins c++lib.w
dodir /usr/share/emacs/site-lisp/
insinto /usr/share/emacs/site-lisp/
doins cweb.el
}
# Going to use this, just to make sure. May convert to a latex-package later.
pkg_postinst() {
texconfig rehash
}
|