docbook-xml-simple-dtd-1.0-r2.ebuild 1.0 KB

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