public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/planarity/files/, sci-mathematics/planarity/
@ 2020-01-30  1:02 Michael Orlitzky
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Orlitzky @ 2020-01-30  1:02 UTC (permalink / raw
  To: gentoo-commits

commit:     153d3a3b7e4da128e6214308868c666c3d62e173
Author:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 29 22:49:38 2020 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Thu Jan 30 01:00:49 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=153d3a3b

sci-mathematics/planarity: new package of graph planarity algorithms.

This commit imports the "planarity" package from the sage-on-gentoo
overlay with a few minor changes:

  * Update to EAPI=7.
  * Drop autotools.eclass and use the tarball from sagemath.org
    that contains the autotools stuff.
  * Add USE=examples to install some sample input/output.
  * Update the old code.google.com HOMEPAGE to point to github.

The SageMath project now has the ability to detect and use a system
copy of planarity, so this will help Gentoo users of SageMath avoid
some pointless rebuilds of planarity.

Closes: https://bugs.gentoo.org/707324
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>

 sci-mathematics/planarity/Manifest                 |  1 +
 .../planarity/files/planarity-3.0.0.5-extern.patch | 21 ++++++++++++++
 sci-mathematics/planarity/metadata.xml             | 26 +++++++++++++++++
 sci-mathematics/planarity/planarity-3.0.0.5.ebuild | 33 ++++++++++++++++++++++
 4 files changed, 81 insertions(+)

diff --git a/sci-mathematics/planarity/Manifest b/sci-mathematics/planarity/Manifest
new file mode 100644
index 00000000000..18c3677165a
--- /dev/null
+++ b/sci-mathematics/planarity/Manifest
@@ -0,0 +1 @@
+DIST planarity-3.0.0.5.tar.gz 492644 BLAKE2B d183bc07cab7246b62cc7340956206e3f6c5999aa92b223e7665ebd8ae1bc0c354011c078ea4f42d2e45efa2ae5e83e082e4c8d80e3391a4f20be1020ebf8188 SHA512 dfeb7e024e1f5758e5abbd854c4ca963b4f5d45433b2c5eb00ce85c154b5407ebccd1ace0db167488dee757db2c23367101a2aa568941a3664bac9058ea24328

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 00000000000..c1b2a27e55c
--- /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 00000000000..d6f3a10ad53
--- /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 00000000000..2deb388db70
--- /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
+}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/planarity/files/, sci-mathematics/planarity/
@ 2021-11-02 18:13 Michael Orlitzky
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Orlitzky @ 2021-11-02 18:13 UTC (permalink / raw
  To: gentoo-commits

commit:     11737e5334643be95b3b3249cc128175a02c46eb
Author:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Tue Nov  2 18:12:57 2021 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Tue Nov  2 18:12:57 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=11737e53

sci-mathematics/planarity: remove old "unused" planarity-3.0.0.5.ebuild.

Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>

 sci-mathematics/planarity/Manifest                 |  1 -
 .../planarity/files/planarity-3.0.0.5-extern.patch | 21 --------------
 sci-mathematics/planarity/planarity-3.0.0.5.ebuild | 33 ----------------------
 3 files changed, 55 deletions(-)

diff --git a/sci-mathematics/planarity/Manifest b/sci-mathematics/planarity/Manifest
index 7ffcc279bbf..576593fd2f7 100644
--- a/sci-mathematics/planarity/Manifest
+++ b/sci-mathematics/planarity/Manifest
@@ -1,2 +1 @@
-DIST planarity-3.0.0.5.tar.gz 492644 BLAKE2B d183bc07cab7246b62cc7340956206e3f6c5999aa92b223e7665ebd8ae1bc0c354011c078ea4f42d2e45efa2ae5e83e082e4c8d80e3391a4f20be1020ebf8188 SHA512 dfeb7e024e1f5758e5abbd854c4ca963b4f5d45433b2c5eb00ce85c154b5407ebccd1ace0db167488dee757db2c23367101a2aa568941a3664bac9058ea24328
 DIST planarity-3.0.1.1.tar.gz 456236 BLAKE2B 60040c8e205dbd9eb67667c6554836a9545bab74ccfb51e319edb191425f1b74403916e7887d06cb2d570eb17694338819ee5fd9828d6636ebecbade8915cdfa SHA512 50d2b6905d20252a6d482aae15984673972508540416a3e9396ff67923bf3bfb5668ef00309d42e540e5c8dd3ac4636ef54da2e5ee334075e87d2f3af6488035

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
deleted file mode 100644
index c1b2a27e55c..00000000000
--- a/sci-mathematics/planarity/files/planarity-3.0.0.5-extern.patch
+++ /dev/null
@@ -1,21 +0,0 @@
-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/planarity-3.0.0.5.ebuild b/sci-mathematics/planarity/planarity-3.0.0.5.ebuild
deleted file mode 100644
index e9cb127f19f..00000000000
--- a/sci-mathematics/planarity/planarity-3.0.0.5.ebuild
+++ /dev/null
@@ -1,33 +0,0 @@
-# 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
-}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-11-02 18:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-02 18:13 [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/planarity/files/, sci-mathematics/planarity/ Michael Orlitzky
  -- strict thread matches above, loose matches on Subject: below --
2020-01-30  1:02 Michael Orlitzky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox