blob: 4ee884319b6bb6f18c5508b46673ef041016c02f (
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
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/pilrc/pilrc-2.9_p10.ebuild,v 1.1 2003/09/18 22:45:53 liquidx Exp $
# workout
PREV_PATCH_LEVEL=$((${PV#*p}-1))
MAJOR_PV=${PV%_p*}
PREV_PV=${MAJOR_PV}p${PREV_PATCH_LEVEL}
MY_PV=${PV/_/}
DESCRIPTION="Pilot Resource Compiler"
HOMEPAGE="http://www.ardiri.com/index.php?redir=palm&cat=pilrc"
SRC_URI="http://www.ardiri.com/download/files/palm/${PN}-${PREV_PV}.tgz
http://www.ardiri.com/download/files/palm/${PN}-${MY_PV}.diff"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~x86 ~sparc"
DEPEND="app-text/dos2unix
gtk? ( =x11-libs/gtk+-1.2* )"
MAKEOPTS="${MAKEOPTS} -j1"
S=${WORKDIR}/${PN}-${PREV_PV}
src_unpack() {
unpack ${A}
# convert to unix text file and patch with the latest patch level
chmod +x ${S}/src2unix.sh
cd ${S}; ./src2unix.sh
dos2unix -n ${DISTDIR}/${PN}-${MY_PV}.diff ${WORKDIR}/${P}.diff
epatch ${WORKDIR}/${P}.diff
# patch typo in Makefile.am
cd ${S}; patch Makefile.am < ${FILESDIR}/${P}-Makefile.patch
# seems to be missing depcomp
cd ${S}; aclocal; autoconf
cd ${S}; WANT_AUTOMAKE="1.6" automake --add-missing
}
src_compile() {
econf `use_enable gtk pilrcui` || die
emake || die
}
src_install () {
make DESTDIR=${D} install || die
dodoc LICENSE.txt README.txt
dohtml doc/*.html -r doc/images
}
|