summaryrefslogtreecommitdiff
blob: 0e6d73f6c6153803877d64e58ebd1cfd4216cd24 (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-2001 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# AJ Lewis <aj@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/dev-libs/pilot-link/pilot-link-0.9.6-r3.ebuild,v 1.1 2001/12/07 12:34:51 gbevin Exp $

S=${WORKDIR}/${P}
DESCRIPTION="A suite of tools contains a series of conduits for moving
information to and from your Palm device and your desktop or workstation
system."

SRC_URI="http://www.gnu-designs.com/pilot-link/source/${P}.tar.gz
	 http://www.eskil.org/gnome-pilot/download/tarballs/${P}.tar.gz"
HOMEPAGE="http://www.gnu-designs.com/pilot-link/"
DEPEND="virtual/glibc"

src_compile() {
	./configure --host=${CHOST}					\
		    --prefix=/usr/					\
		    --mandir=/usr/share/man 				\
		    --infodir=/usr/share/info				\
		    --includedir=/usr/include/libpisock			\
		    --with-tcl=no					\
		    --with-itcl=no 					\
		    --with-tk=no					\
		    --with-python=no					\
		    --with-java=no					\
		    --with-perl5=no
	assert

	# The configure-script seems to be someone broken, 
	# It says that it finds iconv in our glibc but it doesn't 
	# set the #define correctly, I'll notify one of the pilot-link 
	# hackers. // Hallski

	# includedir and mandir don't take ${prefix} into account
	sed -e "s#= /usr/include#= \${prefix}/include#" \
		-e "s#= /usr/share#= \${prefix}/share#" \
		Makefile > Makefile.new
	mv Makefile.new Makefile

	cd ${S}/include
	echo "#define HAVE_ICONV 1" >> pi-config.h
	
	cd ${S}
	emake || die
}

src_install() {

	make prefix=${D}/usr						\
	     mandir=${D}/usr/share/man					\
	     includedir=${D}/usr/include/libpisock			\
	     infodir=${D}/usr/share/info				\
	     install || die

	dodoc COPYING COPYING.LIB ChangeLog README TODO 
	docinto sgml
	dodoc doc/syncabs.sgml

}