docbook-sgml-dtd-3.1-r3.ebuild 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. inherit sgml-catalog eutils
  4. MY_P="docbk31"
  5. DESCRIPTION="Docbook SGML DTD 3.1"
  6. HOMEPAGE="http://www.docbook.org/sgml/"
  7. SRC_URI="http://www.oasis-open.org/docbook/sgml/${PV}/${MY_P}.zip"
  8. LICENSE="docbook"
  9. SLOT="3.1"
  10. 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 ~ppc-macos ~x86-macos ~sparc-solaris ~x64-solaris"
  11. IUSE=""
  12. DEPEND=">=app-arch/unzip-5.41"
  13. RDEPEND="app-text/sgml-common"
  14. S=${WORKDIR}
  15. sgml-catalog_cat_include "/etc/sgml/sgml-docbook-${PV}.cat" \
  16. "/usr/share/sgml/docbook/sgml-dtd-${PV}/catalog"
  17. sgml-catalog_cat_include "/etc/sgml/sgml-docbook-${PV}.cat" \
  18. "/etc/sgml/sgml-docbook.cat"
  19. src_unpack() {
  20. unpack ${A}
  21. epatch "${FILESDIR}"/${P}-catalog.diff
  22. }
  23. src_install() {
  24. insinto /usr/share/sgml/docbook/sgml-dtd-${PV}
  25. doins *.dcl *.dtd *.mod || die "doins failed"
  26. newins docbook.cat catalog || die "newins failed"
  27. dodoc *.txt
  28. }