diff options
Diffstat (limited to 'app-text/htmlc')
-rw-r--r-- | app-text/htmlc/Manifest | 6 | ||||
-rw-r--r-- | app-text/htmlc/files/werror.patch | 18 | ||||
-rw-r--r-- | app-text/htmlc/htmlc-2.40.0.ebuild | 47 | ||||
-rw-r--r-- | app-text/htmlc/htmlc-2.60.0.ebuild | 53 | ||||
-rw-r--r-- | app-text/htmlc/metadata.xml | 8 |
5 files changed, 132 insertions, 0 deletions
diff --git a/app-text/htmlc/Manifest b/app-text/htmlc/Manifest new file mode 100644 index 000000000000..7a551297debd --- /dev/null +++ b/app-text/htmlc/Manifest @@ -0,0 +1,6 @@ +AUX werror.patch 791 BLAKE2B 0a456ddfac9f5d20c9eb2734c2d1f7c154e0cf96f3e831ca62c47e395aa850ce39c7c6d3c0b6e27146de639c13a573e2b6233d85517c057a0ee64769b419ea81 SHA512 fe62de854558ad673e8d88b42d6c71543e32f846afaca1e5062d365b18b4613216e0021ffb4b59e923c4aaba1db6c621c65744de2ac3c864e17e61384022b4bd +DIST htmlc-2.4.0.tgz 132584 BLAKE2B 42f0948e7f896130b539d8d0f0936ddfa21986d3eeab2b30598572eca12952a0010edb1044b259ed13242534a66351c9855e43bbac613028d926370f6221e0d2 SHA512 8de81041cea0c6d07188cb0d8cd553c1d20ea37d01a8d7425d23a10c7fd3d93dc1f7c1e3de473cb624720dc7588a3d891432d5945a23d1f253d2109cdafc15dc +DIST htmlc-2.6.tgz 286727 BLAKE2B 47e5460c08f7ce5010615e0dec99bc60b2e0f6857d0347c50357837930ca68b369a66001846ef3855cd54cdf6f1dac73ab45546be659a05b1e202438e4914865 SHA512 fa268cf547d60babcbf1aee73f75d3516b08e83158dc0bee36f724abfe2f46ad4b571c09d9d14f97315c70f88d3ea29000fe2d838042242325adce201d60a8f4 +EBUILD htmlc-2.40.0.ebuild 877 BLAKE2B 9feb912ac666df0925693b585e5f71ec10acd0f9b42c7f6fc842824e1cf8d5cefa94c6a066be449a5614e1125221c9e246fff27acba0c86f181909099c8ccc8d SHA512 f97c54930c582ef4a1f9d969ac3d8bf2a5f1af368af8f90a2b4214468cfb51e3841c19eacd47b1e0fec1f666d7c21fb5c699261950715d26feeaac9bbc67c9f2 +EBUILD htmlc-2.60.0.ebuild 951 BLAKE2B 7c2a307ee8d6216d168f1cfc22b396bebefc8a4cff350e6870b3e34c2228bff307c4a8c64a73a547d18e9561fc94ec652c3c5e832700ec7e163498bde7e53e04 SHA512 180a18c3586dc3d7a0fa9ede3c1083c3d70c54454faeb24d8ad1f64746d3586cbbbb0cfbe4a7627f474edeeace6998c11cc0ae79fe15b50a2c31916969fe3a7b +MISC metadata.xml 247 BLAKE2B a49ba320a43edd431ae39eb274b77ddf0db171a7b06f4f0f0b8f75ee8e3b7f840dead108aa9c63fba75c609a44f7418268cd65c65877f3305d2a6d3ed3c678f6 SHA512 0f7ebd1264695f56fe6ab78e4e82c07866376f03ebfa12b22b60d0b2df819aa818832cb0d9eb2d77ab642a786b44cd127f579c348f0b2f57bc22e26b3b51c42b diff --git a/app-text/htmlc/files/werror.patch b/app-text/htmlc/files/werror.patch new file mode 100644 index 000000000000..4576b47b80a4 --- /dev/null +++ b/app-text/htmlc/files/werror.patch @@ -0,0 +1,18 @@ +Dont build with -Werror like switches. +Need to patch Makefile and *NOT* Makefile.in since otherwise this triggers a +rebuild of the Makefile which needs htmlc to be installed first. +https://bugs.gentoo.org/show_bug.cgi?id=553172 + +Index: htmlc-2.6.0/config/Makefile +=================================================================== +--- htmlc-2.6.0.orig/config/Makefile ++++ htmlc-2.6.0/config/Makefile +@@ -40,7 +40,7 @@ MANDIR = $(PREFIXINSTALLDIR)/man/man$(MA + + # The Caml compilers (those defaults should be OK) + CAMLDEP = $(OCAML_COMMAND_SEARCH_PATH)ocamldep +-CAML_FLAGS = -w A -warn-error A #-safe-string ++CAML_FLAGS = -w A #-safe-string + CAMLBYT_FLAGS = $(CAML_FLAGS) -g -annot + CAMLBYT = $(OCAML_COMMAND_SEARCH_PATH)ocamlc $(CAMLBYT_FLAGS) + CAMLBIN_FLAGS = $(CAML_FLAGS) -inline 10000 diff --git a/app-text/htmlc/htmlc-2.40.0.ebuild b/app-text/htmlc/htmlc-2.40.0.ebuild new file mode 100644 index 000000000000..8f9c4893199b --- /dev/null +++ b/app-text/htmlc/htmlc-2.40.0.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +# Override version: 2.4.0 > 2.21.0 so we name it 2.40.0 +MY_P="${P/0[.]/.}" + +DESCRIPTION="HTML template files expander" +HOMEPAGE="http://htmlc.inria.fr/" +SRC_URI="http://htmlc.inria.fr/${MY_P}.tgz" + +LICENSE="htmlc" +SLOT="0" +KEYWORDS="~amd64 ~ppc x86" +IUSE="+ocamlopt" +# Files for the tests are missing... +#RESTRICT="test" + +DEPEND=">=dev-lang/ocaml-3.11.2:=[ocamlopt?]" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${MY_P}" + +src_configure() { + ./configure \ + --install-root-dir "${ED}usr" \ + || die +} + +src_compile() { + if use ocamlopt ; then + emake bin + else + emake byt + fi +} + +src_install() { + if use ocamlopt ; then + emake installbin + else + emake installbyt + fi + emake MANDIR='$(PREFIXINSTALLDIR)/share/man/man$(MANEXT)' installman + dodoc README Announce* CHANGES +} diff --git a/app-text/htmlc/htmlc-2.60.0.ebuild b/app-text/htmlc/htmlc-2.60.0.ebuild new file mode 100644 index 000000000000..b10f6905b522 --- /dev/null +++ b/app-text/htmlc/htmlc-2.60.0.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils + +# Override version: 2.4.0 > 2.21.0 so we name it 2.40.0 +MY_P="${P/0[.]/.}" + +DESCRIPTION="HTML template files expander" +HOMEPAGE="http://htmlc.inria.fr/" +SRC_URI="http://htmlc.inria.fr/${MY_P%.0}.tgz" + +LICENSE="htmlc" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="+ocamlopt" +# Files for the tests are missing... +#RESTRICT="test" + +DEPEND=">=dev-lang/ocaml-3.11.2:=[ocamlopt?]" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + epatch "${FILESDIR}/werror.patch" +} + +src_configure() { + ./configure \ + --install-root-dir "${ED}usr" \ + || die +} + +src_compile() { + if use ocamlopt ; then + emake bin + else + emake byt + fi +} + +src_install() { + if use ocamlopt ; then + emake installbin + else + emake installbyt + fi + emake MANDIR='$(PREFIXINSTALLDIR)/share/man/man$(MANEXT)' installman + dodoc README Announce* CHANGES +} diff --git a/app-text/htmlc/metadata.xml b/app-text/htmlc/metadata.xml new file mode 100644 index 000000000000..75c9ea74812d --- /dev/null +++ b/app-text/htmlc/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>ml@gentoo.org</email> + <name>Gentoo ML Project</name> + </maintainer> +</pkgmetadata> |