summaryrefslogtreecommitdiff
blob: 3530a0dd9c5cfb58706d784b6335912e340d2779 (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
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Bruce A. Locke <blocke@shivan.org>
# $Header: /var/cvsroot/gentoo-x86/app-misc/jpilot/jpilot-0.99.ebuild,v 1.2 2001/08/30 17:31:35 pm Exp $


S=${WORKDIR}/${P}
DESCRIPTION="Desktop Organizer Software for the Palm Pilot"
SRC_URI="http://jpilot.org/${P}.tar.gz"
HOMEPAGE="http://jpilot.org/"

DEPEND=">=x11-libs/gtk+-1.2.0 >=dev-libs/pilot-link-0.9.0"

src_compile() {

  local myconf
  if [ -z "`use nls`" ] ; then
	NLS_OPTION="--disable-nls"
  fi

  try ./configure --prefix=/usr/X11R6 --host=${CHOST} ${NLS_OPTION}

  # cheap fix?
  patch -p0 < ${FILESDIR}/${P}.patch

  # make sure we use $CFLAGS
  mv Makefile Makefile.old
  sed -e "s/-g -O2/${CFLAGS}/" Makefile.old > Makefile

  try pmake
}

src_install() {

  make prefix=${D}/usr/X11R6 install
  dodoc README TODO UPGRADING ABOUT-NLS BUGS\
	CHANGELOG COPYING CREDITS INSTALL
  doman docs/*.1 
}