blob: a1ae31421ad6b2218e0a3cb051237571b8e5f8fc (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-apps/interchange/interchange-5.2.0.ebuild,v 1.1 2005/05/03 11:27:29 beu Exp $
inherit eutils
DESCRIPTION="Interchange is an open source alternative to commercial commerce servers and application server/component applications."
SRC_URI="http://ftp.icdevgroup.org/${PN}/5.2/tar/${P}.tar.gz"
HOMEPAGE="http://www.icdevgroup.org/"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~x86"
IUSE="postgres mysql"
DEPEND=">=dev-lang/perl-5.6.0
dev-perl/IniConf
dev-perl/HTML-Parser
dev-perl/ShadowHash
dev-perl/Business-FedEx-DirectConnect
dev-perl/Business-UPS
dev-perl/Safe-Hole"
RDEPEND="
${DEPEND}
postgres? ( >=dev-perl/DBI-1.38 dev-perl/DBD-Pg )
mysql? ( >=dev-perl/DBI-1.38 dev-perl/DBD-mysql dev-perl/SQL-Statement )
net-www/apache"
pkg_setup() {
enewuser interch >/dev/null
}
src_unpack() {
unpack ${A}
cd ${S}
echo -e "\n\n" > out
sed -i "s|/usr/local/interchange|${D}/var/interchange|" Makefile.PL
sed -i "s|\$PERL Makefile.PL \$\*|\$PERL Makefile.PL \$\* < out|" configure
}
src_install () {
./configure || die "configure failed" # this actually installs
cd ${D}/var/interchange/bin
for file in *; do
dosed /var/interchange/bin/${file}
done
}
pkg_postinst () {
einfo "Now run /var/interchange/bin/makecat"
}
|