summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Orlitzky <mjo@gentoo.org>2020-01-14 20:45:58 -0500
committerMichael Orlitzky <mjo@gentoo.org>2020-01-15 08:50:28 -0500
commit78db3420a50b36bcc4d24b8dbb98ae4a30677dd2 (patch)
tree0582a010a235b77371545ddc179823d89d3ba5ee /sci-libs/libbraiding
parentsci-libs/cddlib: new version 094j. (diff)
downloadgentoo-78db3420a50b36bcc4d24b8dbb98ae4a30677dd2.tar.gz
gentoo-78db3420a50b36bcc4d24b8dbb98ae4a30677dd2.tar.bz2
gentoo-78db3420a50b36bcc4d24b8dbb98ae4a30677dd2.zip
sci-libs/libbraiding: new library for braid group computation.
François Bissey had an ebuild for the latest version of this package in the sage-on-gentoo overlay, so I've imported that after adding a few comments and an EAPI=7 bump. Closes: https://bugs.gentoo.org/705432 Package-Manager: Portage-2.3.79, Repoman-2.3.16 Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
Diffstat (limited to 'sci-libs/libbraiding')
-rw-r--r--sci-libs/libbraiding/Manifest1
-rw-r--r--sci-libs/libbraiding/libbraiding-1.0.ebuild28
-rw-r--r--sci-libs/libbraiding/metadata.xml31
3 files changed, 60 insertions, 0 deletions
diff --git a/sci-libs/libbraiding/Manifest b/sci-libs/libbraiding/Manifest
new file mode 100644
index 000000000000..65b1c811bcdc
--- /dev/null
+++ b/sci-libs/libbraiding/Manifest
@@ -0,0 +1 @@
+DIST libbraiding-1.0.tar.gz 377140 BLAKE2B 93520ca1af05dfe77028d3a8d94e94fb4b387662c0f71048db5aa8b1dcc4115996be2ac95108c01a574095cdaba97db1997a65e98a64f87230dda4ae1b6bd8cb SHA512 0fb389d4483b665165bf9ef8dc770b51884eb4ab576c4ca06944080d87ddae806bcf4ebee1fd586f97de171d2ec79c89aeef86ffdeac10eed49ffd0541989ee6
diff --git a/sci-libs/libbraiding/libbraiding-1.0.ebuild b/sci-libs/libbraiding/libbraiding-1.0.ebuild
new file mode 100644
index 000000000000..591115bbc221
--- /dev/null
+++ b/sci-libs/libbraiding/libbraiding-1.0.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="Expose the functionality of cbraid as a shared library"
+HOMEPAGE="https://github.com/miguelmarco/libbraiding"
+
+# The github release is missing the generated autotools files, like the
+# ./configure script. Rather than involve autotools.eclass, let's just
+# get it from sage.
+SRC_URI="http://files.sagemath.org/spkg/upstream/${PN}/${P}.tar.gz"
+
+# A few source headers still say GPLv2, but I believe that to be an
+# oversight: https://github.com/jeanluct/cbraid/issues/4
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="static-libs"
+
+src_configure(){
+ econf $(use_enable static-libs static)
+}
+
+src_install(){
+ default
+ find "${ED}" -name '*.la' -delete || die
+}
diff --git a/sci-libs/libbraiding/metadata.xml b/sci-libs/libbraiding/metadata.xml
new file mode 100644
index 000000000000..1b46fd9baaa6
--- /dev/null
+++ b/sci-libs/libbraiding/metadata.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mjo@gentoo.org</email>
+ </maintainer>
+ <!--
+ mjo: François maintained this package in the sage-on-gentoo overlay
+ long before I moved it into ::gentoo. You don't need an ACK from me
+ to merge his changes.
+ -->
+ <maintainer type="person">
+ <email>frp.bissey@gmail.com</email>
+ <name>François Bissey</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+
+ <longdescription lang="en">
+ This is a project to expose the functionality of the cbraid
+ program as a shared library. The original goal was to include it
+ as a component of SageMath, but it can be used in any other C++
+ program.
+ </longdescription>
+
+ <upstream>
+ <remote-id type="github">miguelmarco/libbraiding</remote-id>
+ </upstream>
+</pkgmetadata>