blob: 8b99e194c4ee11aebf00726ce15469812c89f835 (
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
52
53
54
55
56
57
58
59
|
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Fr�d�ric Brin <duckx@libertysurf.fr>, Jonas Berlin <jonas@berlin.vg>
# $Header: /var/cvsroot/gentoo-x86/dev-util/pccts/pccts-1.33.24.ebuild,v 1.2 2001/08/08 09:19:17 hallski Exp $
A="pccts133mr24.zip"
S=${WORKDIR}/pccts
DESCRIPTION="An embedded C++ parser generator"
SRC_URI="http://www.polhode.com/${A}"
HOMEPAGE="http://www.polhode.com/"
DEPEND="app-arch/unzip"
src_unpack() {
unpack ${A}
echo Patching support/genmk/genmk.c..
cp ${S}/support/genmk/genmk.c ${T}/genmk.c
sed 's,/usr/local/pccts,/usr/lib/pccts,' ${T}/genmk.c > ${S}/support/genmk/genmk.c
}
src_compile() {
# Doesn't work with $CFLAGS.
try emake COPT="-O2"
}
src_install() {
# The reason why stuff goes to /usr/lib is that there are
# platform-dependent binaries being installed.
# The reason why I put everything else (source code templates
# etc) into /usr/lib too is to avoid breaking makefiles
# generated by the "genmk" tool (which is included and already
# patched a bit).
# main binaries
exeinto /usr/lib/pccts/bin
doexe bin/{antlr,dlg,genmk,sor}
# main includes
insinto /usr/lib/pccts/include
doins h/*
# sorcerer includes
insinto /usr/lib/pccts/sorcerer/include
doins sorcerer/h/*
# sorcerer libraries
insinto /usr/lib/pccts/sorcerer/lib
doins sorcerer/lib/*
# documentation
dodoc CHANGES* KNOWN_PROBLEMS* MPW_Read_Me README RIGHTS history.txt
newdoc sorcerer/UPDATES sorcerer-UPDATES
newdoc sorcerer/README sorcerer-README
# manual pages
doman dlg/dlg.1 antlr/antlr.1
}
|