summaryrefslogtreecommitdiff
path: root/dev-haskell/haddock
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-haskell/haddock
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-haskell/haddock')
-rw-r--r--dev-haskell/haddock/Manifest9
-rw-r--r--dev-haskell/haddock/haddock-2.14.3.0.7.8.3.ebuild67
-rw-r--r--dev-haskell/haddock/haddock-2.16.1.ebuild69
-rw-r--r--dev-haskell/haddock/haddock-2.17.2.ebuild34
-rw-r--r--dev-haskell/haddock/metadata.xml7
5 files changed, 186 insertions, 0 deletions
diff --git a/dev-haskell/haddock/Manifest b/dev-haskell/haddock/Manifest
new file mode 100644
index 000000000000..0a9abed73b24
--- /dev/null
+++ b/dev-haskell/haddock/Manifest
@@ -0,0 +1,9 @@
+DIST haddock-2.14.3.0.7.8.3.tar.gz 230282 SHA256 8bcdea48e3fbba6e38d2e629edf230da39d07421424bb1c615198c77623ff2c4 SHA512 62ae4a29c877c3b9742828fcda2f1f045357f41b4a2c495a4791a42d412d41b3d206cdcb73e2d1bd4e95c40371dae865f4eaa37031cda6c1bada5dfed963c2be WHIRLPOOL afd36c8f04aa29c007d83d7c7731098347836daa4e8307710b839ecbc764e191624075df5c3e353c8bcd9f640dfe560a07477bf7909d53ed7e13b34a806efc9a
+DIST haddock-2.16.1.tar.gz 216323 SHA256 46ecd130cb5ad2b5c7452c843f9b75e976f1416d1cf17e6436d65c2c0bdbd6d6 SHA512 709af410f8746819c8c067f3549d79ba0ecaa312fb6b19acf670a9a3e4c94e94b8e546493e08293eceeb488bc0891a8ebe033a58411c4af935b445cd7f3014b8 WHIRLPOOL 0f60978d1e4303d6586b164ab40236f949c14308a0b0ddec9e63ff9b332835ca846187b65de8c122203ace666450f40d55955a3c287f576611d7df2bc6c9161c
+DIST haddock-2.17.2.tar.gz 245690 SHA256 9dd499b022b775b1168c2a8fc940a8cca5eec2416289277a8f59d7321117bb15 SHA512 f8f06abd3b231fae36b900d54a70107dcd6718bab7726ad7bd8392c9053700b96672cf9efa0854033a5c1473dcdf00c390f253bc244ff5f4d25e70dd76c8ea1d WHIRLPOOL 8baf4bea8a3cd9210826e1e37cbb2b62a902abd25a749f52d29979e8c751a05058e5d725dc78ab84fb0297b1a31df65aaa1329785de48fb6a547fc4ecec69b4e
+EBUILD haddock-2.14.3.0.7.8.3.ebuild 2065 SHA256 d078d2626ef716c82c1f229e83dc8680e7da8f39a539587ede04634a2b13eea0 SHA512 8af0445f0cab0b1631a044de38f3ecfc94bcb920666a02fe5d0ff15753306d7bbb9a94748bc42d68ad68023cc55461c5c99af220f652f468533ac151d42a58ae WHIRLPOOL 09eb0e54ffc936adb4d5befc37e6040bc90f0ac9676ef7be4efef2ed56274f82a043ff5607b9f08485409f2dd35e45119436e78cf721edb113c09b8005264667
+EBUILD haddock-2.16.1.ebuild 1924 SHA256 e8aba676a7f060a1a924c9321cd6f019c5598193eab08da130db42514ff21ee5 SHA512 2950f44d9907e2c5213e35854a0c17a6853d8102ef766ddd87bdbaecc85f1bded8d30a2c371b7338877eacaa932ec55c15dcef2f61635e6cb3555a605bee54de WHIRLPOOL f3699e33996fb307ffa2979a7ff725cf6fcc2bf103da08280e83f2d4af4a9ab4926a35f033aff2fc86993ef41dc19eb5252b741420b0245910214a50b4d5db03
+EBUILD haddock-2.17.2.ebuild 807 SHA256 4326010e36aa14012d385cf93c7ed5555e9e75eb6af1fd2d5d61c07e354ed1fb SHA512 25111b0a91da762f6f81f6c4a81d9296382e71d18265af5ac710249e419bfd876378c4d41f12c99327979430bcf398196cd48eca4981413c8d58f60536985b97 WHIRLPOOL bec22aaa7df386b1a7ab44848d160037f3801541afb2c4db57aa29b208393c12477c54f476e8fa549d2edf64aae49c8a9e0b52e35cb8dbcaf5bb4efafb0c0afa
+MISC ChangeLog 3614 SHA256 da284e9e2555f60e0ad595fe456c4759872315dc623d3b68a436456540f5eb45 SHA512 a0d100a2d6b520785b922470ec28d6cabb8351d8730dbe7b877f56b62d020cc52a745067bdb094e90c0f769ff93be0d2c5f2fa9d38bac81b69779170aa09d3f4 WHIRLPOOL cd3f6fee56d4cc7a40158832a4772ba1e51d7857afbac095274428bdd9129c794192220c0e7240c5c49ad7dd6b5e1a8f34d08dd3dd9d79dac3716a9b6d317cd1
+MISC ChangeLog-2015 17298 SHA256 8212763d87113a97dec8a2a6784fcaea095d39ac0b5114299d2834ee5538910f SHA512 8daee255fc814a90e78965b2e359eddf3e314abe5f688d368c4de5703b575ba71e207e093ec419df0f36a4120d80cd41dc2a57132311b6d798cc6293066ca219 WHIRLPOOL b3c0e06395f52c368ee67e394e979cf6cc60bf3aaf3425eca53e9dc027065e15b21877785f4b8d232cbe467305043fc073dda92ee7bd7dbec06dc52019f2c89d
+MISC metadata.xml 217 SHA256 88d4e7497a77aff4f275bcd0b84a36632d17f272e1ed3513fef65468e25da724 SHA512 63f267082f4ba17f6a1226d1c5a14d85d17e0f7a84857605933418d875d09cfffe2a0ca304b8a171dcae59169330fcc3cfca9d6f4c9ce24d135f1125a6d06c70 WHIRLPOOL fe4f2272bee319d2e3959df43927f9bae4b2430fed55bb66d8f6e0390c26d6c2ce48f43ce068662e0d40cbb375930068f39634b381bd6e3d2cf8528d3af5c81b
diff --git a/dev-haskell/haddock/haddock-2.14.3.0.7.8.3.ebuild b/dev-haskell/haddock/haddock-2.14.3.0.7.8.3.ebuild
new file mode 100644
index 000000000000..c7189720b62b
--- /dev/null
+++ b/dev-haskell/haddock/haddock-2.14.3.0.7.8.3.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+# ebuild generated by hackport 0.3.6.9999
+
+CABAL_FEATURES="bin lib profile haddock hoogle hscolour test-suite"
+CABAL_FEATURES+=" nocabaldep"
+inherit haskell-cabal pax-utils
+
+DESCRIPTION="A documentation-generation tool for Haskell libraries"
+HOMEPAGE="http://www.haskell.org/haddock/"
+#SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+SRC_URI="http://code.haskell.org/~slyfox/snapshots/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86"
+IUSE=""
+
+RESTRICT=test # many test depends are not keyworded yet
+
+RDEPEND="dev-haskell/ghc-paths:=[profile?]
+ >=dev-haskell/xhtml-3000.2:=[profile?] <dev-haskell/xhtml-3000.3:=[profile?]
+ >=dev-lang/ghc-7.8.3:= <dev-lang/ghc-7.9:=
+"
+DEPEND="${RDEPEND}
+"
+
+src_prepare() {
+ if [[ ! -e "${S}/html" ]]; then
+ ln -s resources/html "${S}/html" || die "Could not create symbolic link ${S}/html"
+ fi
+}
+
+src_configure() {
+ # create a fake haddock executable. it'll set the right version to cabal
+ # configure, but will eventually get overwritten in src_compile by
+ # the real executable.
+ local exe="${S}/dist/build/haddock/haddock"
+ mkdir -p $(dirname "${exe}")
+ echo -e "#!/bin/sh\necho Haddock version ${PV}" > "${exe}"
+ chmod +x "${exe}"
+
+ # we use 'nocabaldep' to use ghc's bundled Cabal
+ # as external one is likely to break our haddock
+ # (known to work on 1.16.0 and breaks on 1.16.0.1!)
+ haskell-cabal_src_configure \
+ --ghc-options=-rtsopts \
+ --with-haddock="${exe}" \
+ --constraint="Cabal == $(cabal-version)"
+}
+
+src_compile() {
+ # when building the (recursive..) haddock docs, change the datadir to the
+ # current directory, as we're using haddock inplace even if it's built to be
+ # installed into the system first.
+ haddock_datadir="${S}" haskell-cabal_src_compile
+}
+
+src_install() {
+ cabal_src_install
+ # haddock uses GHC-api to process TH source.
+ # TH requires GHCi which needs mmap('rwx') (bug #299709)
+ pax-mark -m "${D}/usr/bin/${PN}"
+}
diff --git a/dev-haskell/haddock/haddock-2.16.1.ebuild b/dev-haskell/haddock/haddock-2.16.1.ebuild
new file mode 100644
index 000000000000..71a09ba5b39c
--- /dev/null
+++ b/dev-haskell/haddock/haddock-2.16.1.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+# ebuild generated by hackport 0.4.4.9999
+
+CABAL_FEATURES="bin test-suite"
+CABAL_FEATURES+=" nocabaldep"
+inherit haskell-cabal pax-utils
+
+DESCRIPTION="A documentation-generation tool for Haskell libraries"
+HOMEPAGE="http://www.haskell.org/haddock/"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+RESTRICT=test # tests are outdated
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.10
+ >=dev-lang/ghc-7.4.1
+ ~dev-haskell/haddock-api-2.16.1
+"
+
+src_prepare() {
+ if [[ ! -e "${S}/html" ]]; then
+ ln -s resources/html "${S}/html" || die "Could not create symbolic link ${S}/html"
+ fi
+}
+
+src_configure() {
+ # create a fake haddock executable. it'll set the right version to cabal
+ # configure, but will eventually get overwritten in src_compile by
+ # the real executable.
+ local exe="${S}/dist/build/haddock/haddock"
+ mkdir -p $(dirname "${exe}")
+ echo -e "#!/bin/sh\necho Haddock version ${PV}" > "${exe}"
+ chmod +x "${exe}"
+
+ # we use 'nocabaldep' to use ghc's bundled Cabal
+ # as external one is likely to break our haddock
+ # (known to work on 1.16.0 and breaks on 1.16.0.1!)
+ haskell-cabal_src_configure \
+ --flags=-in-ghc-tree \
+ --ghc-options=-rtsopts \
+ --with-haddock="${exe}" \
+ --constraint="Cabal == $(cabal-version)"
+
+}
+
+src_compile() {
+ # when building the (recursive..) haddock docs, change the datadir to the
+ # current directory, as we're using haddock inplace even if it's built to be
+ # installed into the system first.
+ haddock_datadir="${S}" haskell-cabal_src_compile
+ pax-mark -m "${S}/dist/build/haddock"
+}
+
+src_install() {
+ cabal_src_install
+ # haddock uses GHC-api to process TH source.
+ # TH requires GHCi which needs mmap('rwx') (bug #299709)
+ pax-mark -m "${D}/usr/bin/${PN}"
+}
diff --git a/dev-haskell/haddock/haddock-2.17.2.ebuild b/dev-haskell/haddock/haddock-2.17.2.ebuild
new file mode 100644
index 000000000000..880b8ea5705f
--- /dev/null
+++ b/dev-haskell/haddock/haddock-2.17.2.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+# ebuild generated by hackport 0.5.9999
+#hackport: flags: -in-ghc-tree
+
+CABAL_FEATURES="bin test-suite"
+inherit haskell-cabal
+
+DESCRIPTION="A documentation-generation tool for Haskell libraries"
+HOMEPAGE="http://www.haskell.org/haddock/"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+#keep in sync with ghc-8.0.1
+KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+RESTRICT=test # there is no haddock-test on hackage yet
+
+RDEPEND=">=dev-haskell/haddock-api-2.17:= <dev-haskell/haddock-api-2.18:=
+ >=dev-lang/ghc-7.4.1:=
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.10
+"
+
+src_configure() {
+ haskell-cabal_src_configure \
+ --flag=-in-ghc-tree
+}
diff --git a/dev-haskell/haddock/metadata.xml b/dev-haskell/haddock/metadata.xml
new file mode 100644
index 000000000000..522384de8446
--- /dev/null
+++ b/dev-haskell/haddock/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>haskell@gentoo.org</email>
+</maintainer>
+</pkgmetadata>