summaryrefslogtreecommitdiff
path: root/sci-mathematics/planarity
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-02-05 18:44:56 +0000
committerV3n3RiX <venerix@redcorelinux.org>2020-02-05 18:44:56 +0000
commit29aabba0ea759c6a2864ff5631735b67ee38e5e0 (patch)
treeab466b4dfa7abecb401b2f8039d08af4689306bb /sci-mathematics/planarity
parentd42200bec37eef2a7478d88988ff00addd0a9202 (diff)
gentoo resync : 05.02.2020
Diffstat (limited to 'sci-mathematics/planarity')
-rw-r--r--sci-mathematics/planarity/Manifest4
-rw-r--r--sci-mathematics/planarity/files/planarity-3.0.0.5-extern.patch21
-rw-r--r--sci-mathematics/planarity/metadata.xml26
-rw-r--r--sci-mathematics/planarity/planarity-3.0.0.5.ebuild33
4 files changed, 84 insertions, 0 deletions
diff --git a/sci-mathematics/planarity/Manifest b/sci-mathematics/planarity/Manifest
new file mode 100644
index 000000000000..d841587bfed4
--- /dev/null
+++ b/sci-mathematics/planarity/Manifest
@@ -0,0 +1,4 @@
+AUX planarity-3.0.0.5-extern.patch 591 BLAKE2B e8c6c75fdb587f10d38023daec5806ae0930dd4c4be1a74fa11fdd2d837a5b5904948a01601702a5de160725dd60214e0de2aa014f20e41dc957e0c4b24f36f4 SHA512 6fb06c58f853ddaa2fe308a8104db4fee1d6021f4ece9f3f6438ba667e65167f248ac6b3b674e997380f2c874447deda1b7be6dbec2f2c66c188ae5cc8c09bc1
+DIST planarity-3.0.0.5.tar.gz 492644 BLAKE2B d183bc07cab7246b62cc7340956206e3f6c5999aa92b223e7665ebd8ae1bc0c354011c078ea4f42d2e45efa2ae5e83e082e4c8d80e3391a4f20be1020ebf8188 SHA512 dfeb7e024e1f5758e5abbd854c4ca963b4f5d45433b2c5eb00ce85c154b5407ebccd1ace0db167488dee757db2c23367101a2aa568941a3664bac9058ea24328
+EBUILD planarity-3.0.0.5.ebuild 965 BLAKE2B 6f787ef7ea2e6b53c065a2675ffb3effbb186591ea78e537d556ea4c30168fbb93441c80e430d764d2707ec6f5b9a15c2fe1b8820dbfc5a9845b687fc0ab4ca0 SHA512 9640fee729cfea5bffc9db8f3c89d5aa9eb205e39b710b930301912ee4d0d9efeae35956f110339f615c230883e28807edc4617911920d754a4b12510ed9a6d2
+MISC metadata.xml 778 BLAKE2B f20aefc29faa94ac4305f4e63a1732ea4f8a6de80bc5289909f215558e8a662bd91b9a7dac87f60c05d2468f1effb7cfa725dd3be27a8594a0cf4a9a2a2b5ff0 SHA512 f4ee0f9f009eb40865f7fb2f849442ad2201f67a494574c40e94c1cc82ef56cd744fdbe5e5b41dddfdf3914ae7f6835bdc008d1a970a65211fb2971905cc0405
diff --git a/sci-mathematics/planarity/files/planarity-3.0.0.5-extern.patch b/sci-mathematics/planarity/files/planarity-3.0.0.5-extern.patch
new file mode 100644
index 000000000000..c1b2a27e55c6
--- /dev/null
+++ b/sci-mathematics/planarity/files/planarity-3.0.0.5-extern.patch
@@ -0,0 +1,21 @@
+diff -Naur planarity-2.2.0.orig/c/planarity.h planarity-2.2.0/c/planarity.h
+--- planarity-2.2.0.orig/c/planarity.h 2015-06-04 22:24:57.753965370 +1200
++++ planarity-2.2.0/c/planarity.h 2015-06-04 23:02:38.138973933 +1200
+@@ -77,7 +77,7 @@
+ int legacyCommandLine(int argc, char *argv[]);
+ int menu();
+
+-char Mode,
++extern char Mode,
+ OrigOut,
+ EmbeddableOut,
+ ObstructedOut,
+@@ -88,7 +88,7 @@
+
+ /* Low-level Utilities */
+ #define MAXLINE 1024
+-char Line[MAXLINE];
++extern char Line[MAXLINE];
+
+ void Message(char *message);
+ void ErrorMessage(char *message);
diff --git a/sci-mathematics/planarity/metadata.xml b/sci-mathematics/planarity/metadata.xml
new file mode 100644
index 000000000000..d6f3a10ad530
--- /dev/null
+++ b/sci-mathematics/planarity/metadata.xml
@@ -0,0 +1,26 @@
+<?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>
+
+ <upstream>
+ <remote-id type="github">
+ graph-algorithms/edge-addition-planarity-suite
+ </remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-mathematics/planarity/planarity-3.0.0.5.ebuild b/sci-mathematics/planarity/planarity-3.0.0.5.ebuild
new file mode 100644
index 000000000000..2deb388db702
--- /dev/null
+++ b/sci-mathematics/planarity/planarity-3.0.0.5.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+MY_PN="edge-addition-planarity-suite-Version"
+DESCRIPTION="The edge addition planarity suite of graph algorithms"
+HOMEPAGE="https://github.com/graph-algorithms/edge-addition-planarity-suite/"
+
+# Use the tarball from sage because the github release doesn't
+# contain the generated autotools files (like ./configure).
+SRC_URI="http://files.sagemath.org/spkg/upstream/${PN}/${P}.tar.gz"
+IUSE="examples static-libs"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+# https://github.com/graph-algorithms/edge-addition-planarity-suite/issues/4
+# https://github.com/graph-algorithms/edge-addition-planarity-suite/pull/3
+PATCHES=( "${FILESDIR}/${P}-extern.patch" )
+
+S="${WORKDIR}/${MY_PN}_${PV}"
+
+src_configure(){
+ econf $(use_enable static-libs static)
+}
+
+src_install(){
+ default
+ find "${ED}" -name '*.la' -delete || die
+ use examples && dodoc -r c/samples
+}