/[gentoo-x86]/app-text/scrollkeeper-dtd/scrollkeeper-dtd-1.0.ebuild
Gentoo

Contents of /app-text/scrollkeeper-dtd/scrollkeeper-dtd-1.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Thu Apr 26 22:42:46 2012 UTC (2 years, 7 months ago) by aballier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +3 -3 lines
keyword ~amd64-fbsd

(Portage version: 2.2.0_alpha101/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-text/scrollkeeper-dtd/scrollkeeper-dtd-1.0.ebuild,v 1.4 2011/02/06 07:39:55 leio Exp $
4
5 EAPI="3"
6
7 DTD_FILE="scrollkeeper-omf.dtd"
8
9 DESCRIPTION="DTD from the Scrollkeeper package"
10 HOMEPAGE="http://scrollkeeper.sourceforge.net/"
11 SRC_URI="http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/${DTD_FILE}"
12
13 LICENSE="FDL-1.1"
14 SLOT="1.0"
15 KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris ~x86-solaris"
16 IUSE=""
17
18 RDEPEND=">=dev-libs/libxml2-2.4.19"
19 DEPEND="${RDEPEND}
20 !<app-text/scrollkeeper-9999-r1"
21
22 src_unpack() { :; }
23
24 src_configure() { :; }
25
26 src_compile() { :; }
27
28 src_install() {
29 insinto /usr/share/xml/scrollkeeper/dtds
30 doins "${DISTDIR}/${DTD_FILE}"
31 }
32
33 pkg_postinst() {
34 einfo "Installing catalog..."
35
36 # Install regular DOCTYPE catalog entry
37 "${EROOT}"usr/bin/xmlcatalog --noout --add "public" \
38 "-//OMF//DTD Scrollkeeper OMF Variant V1.0//EN" \
39 "${EROOT}"usr/share/xml/scrollkeeper/dtds/${DTD_FILE} \
40 "${EROOT}"etc/xml/catalog
41
42 # Install catalog entry for calls like: xmllint --dtdvalid URL ...
43 "${EROOT}"usr/bin/xmlcatalog --noout --add "system" \
44 "${SRC_URI}" \
45 "${EROOT}"usr/share/xml/scrollkeeper/dtds/${DTD_FILE} \
46 "${EROOT}"etc/xml/catalog
47 }
48
49 pkg_postrm() {
50 # Remove all sk-dtd from the cache
51 einfo "Cleaning catalog..."
52
53 "${EROOT}"usr/bin/xmlcatalog --noout --del \
54 "${EROOT}"usr/share/xml/scrollkeeper/dtds/${DTD_FILE} \
55 "${EROOT}"etc/xml/catalog
56 }

  ViewVC Help
Powered by ViewVC 1.1.20