From ecaa82183b814ad43cc21f908b22c25a37b8aeef Mon Sep 17 00:00:00 2001 From: Dmitry Isaenko Date: Wed, 20 Dec 2017 04:14:40 +0300 Subject: [PATCH] pre-release of HTMLDOC and cleanup --- app-text/htmldoc/Manifest | 3 ++ app-text/htmldoc/htmldoc-1.9.1.ebuild | 43 +++++++++++++++++++++++++++ app-text/htmldoc/metadata.xml | 5 ++++ 3 files changed, 51 insertions(+) create mode 100644 app-text/htmldoc/Manifest create mode 100644 app-text/htmldoc/htmldoc-1.9.1.ebuild create mode 100644 app-text/htmldoc/metadata.xml diff --git a/app-text/htmldoc/Manifest b/app-text/htmldoc/Manifest new file mode 100644 index 0000000..0cfc8f1 --- /dev/null +++ b/app-text/htmldoc/Manifest @@ -0,0 +1,3 @@ +DIST htmldoc-1.9.1-source.tar.gz 4429305 SHA256 cbee52b9e6f5485086db1b86d7ed0609925fef325a88cf96a6d11a5859117094 SHA512 078630c73c0e2101fbe7ee633ddd54ffe2ea133280320825a5e88143076a1a55e86b7a3657f305506eab1ae1a2289ca61ae43833b4de57362df5ec1dd604e03a WHIRLPOOL 8dcd4ed8d1ab1b1b5cc10dca5a63f008002f2b476e59c79f44ff7257003b11b038efe0b5279c7eff8b97aab17f0aedc82bb0e412f58b26183953e835a03c5cbc +EBUILD htmldoc-1.9.1.ebuild 1116 SHA256 b2ad477881d653bcc0074a8307d2224494b1841ce62c82ee913943a2ab017a25 SHA512 e7364dc7779205511246b070257b7bea4f473fe54ae21e5be6ebe35aa728f851ff306186001c5d1d1b866bc84672eb40c649b3e312242d37610413aba7bb2d16 WHIRLPOOL 39af409977de77c999536acedb8f553e6d56df843ea52dba6d48cfe3cf6a7712798e0926965ac709227db07755cd8687029366cbafdffb43e6a8ed2bbf9f259c +MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968 diff --git a/app-text/htmldoc/htmldoc-1.9.1.ebuild b/app-text/htmldoc/htmldoc-1.9.1.ebuild new file mode 100644 index 0000000..6ee7c0a --- /dev/null +++ b/app-text/htmldoc/htmldoc-1.9.1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit toolchain-funcs + +DESCRIPTION="Convert HTML pages into a PDF document" +HOMEPAGE="https://michaelrsweet.github.io/htmldoc/" +SRC_URI="https://github.com/michaelrsweet/${PN}/releases/download/v${PV}/${P}-source.tar.gz" +IUSE="fltk" +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="alpha amd64 ~arm ~hppa ia64 ppc ppc64 sparc x86" + +DEPEND=">=media-libs/libpng-1.4:0= + virtual/jpeg:0 + fltk? ( x11-libs/fltk:1 )" +RDEPEND="${DEPEND}" + +S="${WORKDIR}" + +src_prepare() { + default + + # make sure not to use the libs htmldoc ships with + rm -r jpeg png zlib || die 'failed to unbundle jpeg, png, and zlib' + + # Fix the documentation path in a few places. Some Makefiles aren't + # autotoolized =( + for file in configure doc/Makefile doc/htmldoc.man; do + sed -i "${file}" \ + -e "s:/doc/htmldoc:/doc/${PF}/html:g" \ + || die "failed to fix documentation path in ${file}" + done +} + +src_configure() { + CC=$(tc-getCC) CXX=$(tc-getCXX) DSTROOT="${D}" econf $(use_with fltk gui) +} + +src_install() { + emake DSTROOT="${D}" install +} diff --git a/app-text/htmldoc/metadata.xml b/app-text/htmldoc/metadata.xml new file mode 100644 index 0000000..6f49eba --- /dev/null +++ b/app-text/htmldoc/metadata.xml @@ -0,0 +1,5 @@ + + + + +