diff options
author | Daniel Ahlberg <aliz@gentoo.org> | 2002-09-04 10:04:00 +0000 |
---|---|---|
committer | Daniel Ahlberg <aliz@gentoo.org> | 2002-09-04 10:04:00 +0000 |
commit | dce56601df583d95b92579e1ba96972ae63f211b (patch) | |
tree | 2bbfb67027cd1924bddec83244d786e7caa081b6 /app-text/scrollkeeper/scrollkeeper-0.3.11-r1.ebuild | |
parent | small fix0rs (diff) | |
download | historical-dce56601df583d95b92579e1ba96972ae63f211b.tar.gz historical-dce56601df583d95b92579e1ba96972ae63f211b.tar.bz2 historical-dce56601df583d95b92579e1ba96972ae63f211b.zip |
Security update.
Diffstat (limited to 'app-text/scrollkeeper/scrollkeeper-0.3.11-r1.ebuild')
-rw-r--r-- | app-text/scrollkeeper/scrollkeeper-0.3.11-r1.ebuild | 100 |
1 files changed, 100 insertions, 0 deletions
diff --git a/app-text/scrollkeeper/scrollkeeper-0.3.11-r1.ebuild b/app-text/scrollkeeper/scrollkeeper-0.3.11-r1.ebuild new file mode 100644 index 000000000000..091485522565 --- /dev/null +++ b/app-text/scrollkeeper/scrollkeeper-0.3.11-r1.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/app-text/scrollkeeper/scrollkeeper-0.3.11-r1.ebuild,v 1.1 2002/09/04 10:03:59 aliz Exp $ + +inherit libtool +KEYWORDS="x86 ppc sparc sparc64" + +S=${WORKDIR}/${P} +DESCRIPTION="Scrollkeeper" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz +http://telia.dl.sourceforge.net/sourceforge/${PN}/${P}.tar.gz +http://unc.dl.sourceforge.net/sourceforge/${PN}/${P}.tar.gz +http://belnet.dl.sourceforge.net/sourceforge/${PN}/${P}.tar.gz" +HOMEPAGE="http://scrollkeeper.sourceforge.net" +SLOT="0" +LICENSE="FDL-1.1 LGPL-2.1" + +RDEPEND=">=dev-libs/libxml2-2.4.19 + >=dev-libs/libxslt-1.0.14 + >=sys-libs/zlib-1.1.3 + >=app-text/docbook-xml-dtd-4.1.2-r2 + >=app-text/docbook-sgml-utils-0.6.6" + +DEPEND="${RDEPEND} + >=dev-util/intltool-0.17 + nls? ( sys-devel/gettext )" + +src_unpack() { + unpack ${A} + + cd ${S} + patch -l -p1 < ${FILESDIR}/${P}-gentoo.diff || die +} + +src_compile() { + elibtoolize + + local myconf="" + + use nls || { + myconf="${myconf} --disable-nls" + # Not existing can cause ./configure to fail in some cases. + touch ${S}/intl/libintl.h + } + + # hack around some to make sure we find the libxml2 includes. odd bug. + #CFLAGS="${CFLAGS} -I/usr/include/libxml2/libxml" + + ./configure --host=${CHOST} \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + ${myconf} || die + + emake || die +} + +src_install() { + make DESTDIR=${D} install || die + + dodoc AUTHORS INSTALL TODO COPYING* ChangeLog README NEWS +} + +pkg_preinst() { + if [ -d ${ROOT}/usr/share/scrollkeeper/Templates ] + then + rm -rf ${ROOT}/usr/share/scrollkeeper/Templates + fi +} + +pkg_postinst() { + echo ">>> Installing catalog..." + ${ROOT}/usr/bin/xmlcatalog --noout --add "public" \ + "-//OMF//DTD Scrollkeeper OMF Variant V1.0//EN" \ + "`echo "${ROOT}/usr/share/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd" |sed -e "s://:/:g"`" \ + ${ROOT}/etc/xml/catalog + echo ">>> Rebuilding Scrollkeeper database..." + scrollkeeper-rebuilddb -q -p ${ROOT}/var/lib/scrollkeeper + echo ">>> Updating Scrollkeeper database..." + scrollkeeper-update -v &>${T}/foo +} + +pkg_postrm() { + if [ ! -x ${ROOT}/usr/bin/scrollkeeper-config ] + then + # SK is being removed, not upgraded. + # Remove all generated files + einfo ">>> Cleaning up ${ROOT}/var/lib/scrollkeeper..." + rm -rf ${ROOT}/var/lib/scrollkeeper + rm -rf ${ROOT}/var/log/scrollkeeper.log + rm -rf ${ROOT}/var/log/scrollkeeper.log.1 + ${ROOT}/usr/bin/xmlcatalog --noout --del \ + "${ROOT}/usr/share/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd" \ + ${ROOT}/etc/xml/catalog + + einfo ">>> Scrollkeeper ${PV} unmerged, if you removed the package" + einfo ">>> you might want to clean up /var/lib/scrollkeeper." + fi +} + |