blob: 50fcfcf3aa739a20f9c6ae904c91bb6d6de4eff0 (
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
|
# Copyright 1999-2005 Gentoo Foundation
# 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.6 2005/01/26 11:47:10 liquidx Exp $
inherit eutils
# 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"
IUSE="gtk"
DEPEND="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
cp ${DISTDIR}/${PN}-${MY_PV}.diff ${WORKDIR}/${P}.diff
edos2unix ${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
}
|