summaryrefslogtreecommitdiff
blob: be06a8f0bae39599c5457b6d61a3e4e4748d5452 (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
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Achim Gottinger <achim@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/app-text/scrollkeeper/scrollkeeper-0.2-r3.ebuild,v 1.1 2002/03/27 21:52:01 seemant Exp $

S=${WORKDIR}/${P}
DESCRIPTION="A cataloging system for documentation on open systems"
SRC_URI="ftp://ftp.gnome.org/pub/GNOME/stable/sources/${PN}/${P}.tar.gz"
HOMEPAGE="http://www.gnome.org/"

RDEPEND=">=dev-libs/libxml-1.8.11
 	 >=sys-libs/zlib-1.1.3"

DEPEND="${RDEPEND}
	nls? ( sys-devel/gettext )"

src_compile() {
	local  myconf

	use nls || myconf="${myconf} --disable-nls"

	./configure --host=${CHOST} 					\
		    --prefix=/usr                                       \
			--mandir=/usr/share/man	\
            --sysconfdir=/etc					\
		    --localstatedir=/var 	\
			${myconf} || die

	emake || die
}

src_install() {
        cd omf-install
        cp Makefile Makefile.old
        sed -e "s:scrollkeeper-update.*::g" Makefile.old > Makefile
        rm Makefile.old
        cd ${S}

	make DESTDIR=${D} install || die

	dodoc AUTHORS COPYING* ChangeLog README NEWS
}

pkg_postinst() {
        echo ">>> Updating Scrollkeeper database..."
        scrollkeeper-update >/dev/null 2>&1
}

pkg_postrm() {
        echo ">>> Scrollkeeper ${PV} unmerged, if you removed the package"
	echo "    you might want to clean up /var/lib/scrollkeeper."
}