summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2012-03-30 11:40:53 +0000
committerAlexis Ballier <aballier@gentoo.org>2012-03-30 11:40:53 +0000
commitb1ef692ab30bc6481e10c5783e42da87cde1e2a8 (patch)
tree42226e2309fe4e1c8b4d7bd49634857e232ee76a /dev-ml/tyxml
parentinitial import, ebuild by Guillaume Horel in bug #406521 (diff)
downloadhistorical-b1ef692ab30bc6481e10c5783e42da87cde1e2a8.tar.gz
historical-b1ef692ab30bc6481e10c5783e42da87cde1e2a8.tar.bz2
historical-b1ef692ab30bc6481e10c5783e42da87cde1e2a8.zip
initial import, ebuild by Guillaume Horel in bug #406515
Package-Manager: portage-2.2.0_alpha96/cvs/Linux x86_64
Diffstat (limited to 'dev-ml/tyxml')
-rw-r--r--dev-ml/tyxml/ChangeLog10
-rw-r--r--dev-ml/tyxml/Manifest14
-rw-r--r--dev-ml/tyxml/metadata.xml8
-rw-r--r--dev-ml/tyxml/tyxml-2.0.2.ebuild46
4 files changed, 78 insertions, 0 deletions
diff --git a/dev-ml/tyxml/ChangeLog b/dev-ml/tyxml/ChangeLog
new file mode 100644
index 000000000000..d3a05355cd1f
--- /dev/null
+++ b/dev-ml/tyxml/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-ml/tyxml
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ml/tyxml/ChangeLog,v 1.1 2012/03/30 11:40:53 aballier Exp $
+
+*tyxml-2.0.2 (30 Mar 2012)
+
+ 30 Mar 2012; Alexis Ballier <aballier@gentoo.org> +tyxml-2.0.2.ebuild,
+ +metadata.xml:
+ initial import, ebuild by Guillaume Horel in bug #406515
+
diff --git a/dev-ml/tyxml/Manifest b/dev-ml/tyxml/Manifest
new file mode 100644
index 000000000000..bc820e92ab17
--- /dev/null
+++ b/dev-ml/tyxml/Manifest
@@ -0,0 +1,14 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+DIST tyxml-2.0.2.tar.gz 103193 RMD160 536eb6fa8d79fab29ca48986fb263f6368f52c6d SHA1 da716580bbd5de6644db4a36410af9680bceb87a SHA256 521fa55bbacb4ffc5da504eacaa138a88f0a74978423173f6f48ab22da7a16ca
+EBUILD tyxml-2.0.2.ebuild 1044 RMD160 571fe2376263b1d111f24251936cd9d6c83e7088 SHA1 dfc4bbf553858e3e08127aea3953a883f31e0b23 SHA256 ce539d7f53a497563f50d6351580dacf632a6120e99ea8faec4050554634f199
+MISC ChangeLog 377 RMD160 e5cdd9ad3907cbf6877dccd75b29da92f1f7cb21 SHA1 cc33e93b211f60f2c12545e9617e9d86d0965228 SHA256 cffc3105aec548c3730b718db5964afec75584343801ca162acf7bd40a1b89e2
+MISC metadata.xml 241 RMD160 dbd9795341426915da9326b4d2dba3d222b05394 SHA1 de585b330afc426ac9de9b551695bafbbd741cda SHA256 addf8ee1daa81fa1610eae3f9c133257c0354a09365f71df318e1b1b8a463e12
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.19 (GNU/Linux)
+
+iEYEARECAAYFAk91m8oACgkQvFcC4BYPU0pWCACgoTWYc0ffuD3c8G4Iv42EZwE+
+Kk4Anj45vqCCREWS5XHp1UpsK7eCvxpS
+=gQf4
+-----END PGP SIGNATURE-----
diff --git a/dev-ml/tyxml/metadata.xml b/dev-ml/tyxml/metadata.xml
new file mode 100644
index 000000000000..ea89b16d367e
--- /dev/null
+++ b/dev-ml/tyxml/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>ml</herd>
+ <use>
+ <flag name='ocamlduce'>Enables ocamlduce XML typechecking.</flag>
+ </use>
+</pkgmetadata>
diff --git a/dev-ml/tyxml/tyxml-2.0.2.ebuild b/dev-ml/tyxml/tyxml-2.0.2.ebuild
new file mode 100644
index 000000000000..7457da1e7918
--- /dev/null
+++ b/dev-ml/tyxml/tyxml-2.0.2.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ml/tyxml/tyxml-2.0.2.ebuild,v 1.1 2012/03/30 11:40:53 aballier Exp $
+
+EAPI=4
+
+inherit eutils findlib
+
+DESCRIPTION="A libary to build xml trees typechecked by OCaml"
+HOMEPAGE="http://ocsigen.org/tyxml/"
+SRC_URI="http://www.ocsigen.org/download/${P}.tar.gz"
+
+LICENSE="LGPL-2.1-linking-exception"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="doc ocamlduce +ocamlopt"
+
+DEPEND="
+ >=dev-lang/ocaml-3.12[ocamlopt?]
+ dev-ml/ocamlnet
+ ocamlduce? ( dev-ml/ocamlduce )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ export myopts="OCAMLDUCE=$(usex ocamlduce yes no)"
+}
+
+src_compile() {
+ if use ocamlopt; then
+ emake "$myopts"
+ else
+ emake "$myopts" byte
+ fi
+ use doc && emake doc "$myopts"
+}
+
+src_install() {
+ findlib_src_preinst
+ if use ocamlopt; then
+ emake DESTIR="${D}" OCAMLDUCE="$myopts" install
+ else
+ emake DESTIR="${D}" OCAMLDUCE="$myopts" install-byte
+ fi
+ dodoc CHANGES README
+ use doc && dohtml -r doc/api-html
+}