blob: 60fcf456b6b0d6da1001c5b2256e532cd953d903 (
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
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-office/facturalux/facturalux-0.4.ebuild,v 1.1 2003/11/06 12:13:11 brandy Exp $
S=${WORKDIR}/${P}
DESCRIPTION="General purpose ERP/CRM software"
HOMEPAGE="http://www.facturalux.org"
SRC_URI="mirror://sourceforge/facturalux/${P}.tar.bz2
mirror://sourceforge/facturalux/personalizacion-base-0.0.tar.bz2"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~x86"
DEPEND=">=x11-libs/qt-3
sys-libs/zlib"
RDEPEND="dev-db/postgresql"
src_unpack() {
unpack ${A}
cd ${WORKDIR}
epatch ${FILESDIR}/${P}-gentoo.patch
epatch ${FILESDIR}/${PN}-base-0.0-gentoo.patch
}
src_compile() {
cd ${S}
econf || die "configure failed"
emake || die "parallel make failed"
cd ${WORKDIR}/base-0.0
econf || die "base-0.0 configure failed"
emake || die "base-0.0 parallel make failed"
}
src_install() {
make DESTDIR=${D} install || die "install failed"
cd ${WORKDIR}/base-0.0
make DESTDIR=${D} install || die "base-0.0 install failed"
cd ${S}
dodoc AUTHORS ChangeLog COPYING INSTALL LEEME NOTES README TODO
}
pkg_postinst() {
einfo
einfo "You must create a new database and a proper user:"
einfo
einfo "# su postgres"
einfo "$ createdb -E UNICODE facturalux"
einfo "$ createuser --pwprompt password"
einfo
}
|