blob: 61c61951713edc36d8612fb81a487951bbe95d5a (
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/bigwig/bigwig-2.0-r7.ebuild,v 1.3 2003/02/13 10:24:29 vapier Exp $
IUSE="odbc mysql libwww java ssl"
DESCRIPTION="a high-level programming language for developing interactive Web services."
HOMEPAGE="http://www.brics.dk/bigwig/"
LICENSE="GPL-2"
DEPEND=">=net-www/apache-1.3
odbc? ( dev-db/unixODBC )
mysql? ( dev-db/mysql )
libwww? ( net-libs/libwww )
java? ( virtual/jre )
ssl? ( dev-libs/openssl )
sys-devel/ld.so
sys-libs/zlib
virtual/glibc"
SLOT="0"
SRC_URI="http://www.brics.dk/bigwig/dist/${P}-7.tar.gz"
KEYWORDS="x86"
S=${WORKDIR}/${P}
src_compile() {
local myconf
myconf="--enable-purify --enable-syslog=LOG_LOCAL5 --with-gnu-ld"
myconf="${myconf} --with-apxs=/usr/sbin/apxs --with-apacheuser=apache --with-apachemodules=apache"
use odbc \
&& myconf="${myconf} --with-odbc-inc=/usr/include/ --with-odbc-lib=/usr/lib/" \
|| myconf="${myconf} --disable-odbc"
use libwww \
&& myconf="${myconf} --with-libwww-config=/usr/bin/libwww-config" \
|| myconf="${myconf} --disable-libwww"
econf ${myconf} || die "./configure failed"
#./configure \
# ${myconf} \
# --host=${CHOST} \
# --prefix=/usr \
# --infodir=/usr/share/info \
# --mandir=/usr/share/man || die "./configure failed"
emake || die
}
src_install () {
local t
for t in `find ${S} -type f -name Makefile`
do
cp ${t} ${t}.orig || die
sed "s:^\(APACHE_.\+_DIR = \)\(/\):\1${D}\2:" ${t}.orig > ${t}
done
unset t
make \
DESTDIR=${D} \
RPM_BUILD_ROOT=${D} \
prefix=${D}/usr \
mandir=${D}/usr/share/man \
infodir=${D}/usr/share/info \
localstatedir=${D}/var/lib \
install || die
echo "make install finished"; echo
dodoc AUTHORS ChangeLog INSTALL NEWS README TODO
rm -f ${D}/etc/apache/conf/httpd.conf
# fix stupid install script...
local t
local tdst
for t in `find ${D}${D} -type f -o -type l`
do
tdst=`echo ${t} | sed s:^${D}::`
mkdir -p `dirname ${tdst}`
mv ${t} ${tdst}
done
rm -rf ${D}/var/tmp/
}
|