docbook-xml-simple-dtd-4.1.2.5-r2.ebuild 997 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Copyright 1999-2014 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. inherit sgml-catalog
  4. DESCRIPTION="Simplified Docbook DTD for XML"
  5. HOMEPAGE="http://www.oasis-open.org/docbook/xml/simple/4.1.2.5/"
  6. SRC_URI="http://www.nwalsh.com/docbook/simple/${PV}/simple4125.zip"
  7. LICENSE="docbook"
  8. SLOT="4.1.2.5"
  9. KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris"
  10. IUSE=""
  11. RDEPEND=">=app-text/build-docbook-catalog-1.6"
  12. DEPEND=">=app-arch/unzip-5.41"
  13. S=${WORKDIR}
  14. sgml-catalog_cat_include "/etc/sgml/xml-simple-docbook-${PV}.cat" \
  15. "/usr/share/sgml/docbook/${P#docbook-}/catalog"
  16. src_install() {
  17. insinto /usr/share/sgml/docbook/${P#docbook-}
  18. doins *.dtd *.mod *.css
  19. newins "${FILESDIR}"/${P}.catalog catalog
  20. }
  21. pkg_postinst() {
  22. build-docbook-catalog
  23. sgml-catalog_pkg_postinst
  24. }
  25. pkg_postrm() {
  26. build-docbook-catalog
  27. sgml-catalog_pkg_postrm
  28. }