mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
app-text/scrollkeeper-dtd: Drop old
Closes: https://bugs.gentoo.org/642308 Package-Manager: Portage-2.3.24, Repoman-2.3.6
This commit is contained in:
@@ -1,55 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="3"
|
||||
|
||||
DTD_FILE="scrollkeeper-omf.dtd"
|
||||
|
||||
DESCRIPTION="DTD from the Scrollkeeper package"
|
||||
HOMEPAGE="http://scrollkeeper.sourceforge.net/"
|
||||
SRC_URI="http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/${DTD_FILE}"
|
||||
|
||||
LICENSE="FDL-1.1"
|
||||
SLOT="1.0"
|
||||
KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=dev-libs/libxml2-2.4.19"
|
||||
DEPEND="${RDEPEND}
|
||||
!<app-text/scrollkeeper-9999-r1"
|
||||
|
||||
src_unpack() { :; }
|
||||
|
||||
src_configure() { :; }
|
||||
|
||||
src_compile() { :; }
|
||||
|
||||
src_install() {
|
||||
insinto /usr/share/xml/scrollkeeper/dtds
|
||||
doins "${DISTDIR}/${DTD_FILE}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
einfo "Installing catalog..."
|
||||
|
||||
# Install regular DOCTYPE catalog entry
|
||||
"${EROOT}"usr/bin/xmlcatalog --noout --add "public" \
|
||||
"-//OMF//DTD Scrollkeeper OMF Variant V1.0//EN" \
|
||||
"${EROOT}"usr/share/xml/scrollkeeper/dtds/${DTD_FILE} \
|
||||
"${EROOT}"etc/xml/catalog
|
||||
|
||||
# Install catalog entry for calls like: xmllint --dtdvalid URL ...
|
||||
"${EROOT}"usr/bin/xmlcatalog --noout --add "system" \
|
||||
"${SRC_URI}" \
|
||||
"${EROOT}"usr/share/xml/scrollkeeper/dtds/${DTD_FILE} \
|
||||
"${EROOT}"etc/xml/catalog
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
# Remove all sk-dtd from the cache
|
||||
einfo "Cleaning catalog..."
|
||||
|
||||
"${EROOT}"usr/bin/xmlcatalog --noout --del \
|
||||
"${EROOT}"usr/share/xml/scrollkeeper/dtds/${DTD_FILE} \
|
||||
"${EROOT}"etc/xml/catalog
|
||||
}
|
||||
Reference in New Issue
Block a user