Gentoo Archives: gentoo-commits

From: Michael Orlitzky <mjo@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/planarity/files/, sci-mathematics/planarity/
Date: Thu, 30 Jan 2020 01:03:03
Message-Id: 1580346049.153d3a3b7e4da128e6214308868c666c3d62e173.mjo@gentoo
1 commit: 153d3a3b7e4da128e6214308868c666c3d62e173
2 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 29 22:49:38 2020 +0000
4 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 30 01:00:49 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=153d3a3b
7
8 sci-mathematics/planarity: new package of graph planarity algorithms.
9
10 This commit imports the "planarity" package from the sage-on-gentoo
11 overlay with a few minor changes:
12
13 * Update to EAPI=7.
14 * Drop autotools.eclass and use the tarball from sagemath.org
15 that contains the autotools stuff.
16 * Add USE=examples to install some sample input/output.
17 * Update the old code.google.com HOMEPAGE to point to github.
18
19 The SageMath project now has the ability to detect and use a system
20 copy of planarity, so this will help Gentoo users of SageMath avoid
21 some pointless rebuilds of planarity.
22
23 Closes: https://bugs.gentoo.org/707324
24 Package-Manager: Portage-2.3.84, Repoman-2.3.20
25 Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>
26
27 sci-mathematics/planarity/Manifest | 1 +
28 .../planarity/files/planarity-3.0.0.5-extern.patch | 21 ++++++++++++++
29 sci-mathematics/planarity/metadata.xml | 26 +++++++++++++++++
30 sci-mathematics/planarity/planarity-3.0.0.5.ebuild | 33 ++++++++++++++++++++++
31 4 files changed, 81 insertions(+)
32
33 diff --git a/sci-mathematics/planarity/Manifest b/sci-mathematics/planarity/Manifest
34 new file mode 100644
35 index 00000000000..18c3677165a
36 --- /dev/null
37 +++ b/sci-mathematics/planarity/Manifest
38 @@ -0,0 +1 @@
39 +DIST planarity-3.0.0.5.tar.gz 492644 BLAKE2B d183bc07cab7246b62cc7340956206e3f6c5999aa92b223e7665ebd8ae1bc0c354011c078ea4f42d2e45efa2ae5e83e082e4c8d80e3391a4f20be1020ebf8188 SHA512 dfeb7e024e1f5758e5abbd854c4ca963b4f5d45433b2c5eb00ce85c154b5407ebccd1ace0db167488dee757db2c23367101a2aa568941a3664bac9058ea24328
40
41 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
42 new file mode 100644
43 index 00000000000..c1b2a27e55c
44 --- /dev/null
45 +++ b/sci-mathematics/planarity/files/planarity-3.0.0.5-extern.patch
46 @@ -0,0 +1,21 @@
47 +diff -Naur planarity-2.2.0.orig/c/planarity.h planarity-2.2.0/c/planarity.h
48 +--- planarity-2.2.0.orig/c/planarity.h 2015-06-04 22:24:57.753965370 +1200
49 ++++ planarity-2.2.0/c/planarity.h 2015-06-04 23:02:38.138973933 +1200
50 +@@ -77,7 +77,7 @@
51 + int legacyCommandLine(int argc, char *argv[]);
52 + int menu();
53 +
54 +-char Mode,
55 ++extern char Mode,
56 + OrigOut,
57 + EmbeddableOut,
58 + ObstructedOut,
59 +@@ -88,7 +88,7 @@
60 +
61 + /* Low-level Utilities */
62 + #define MAXLINE 1024
63 +-char Line[MAXLINE];
64 ++extern char Line[MAXLINE];
65 +
66 + void Message(char *message);
67 + void ErrorMessage(char *message);
68
69 diff --git a/sci-mathematics/planarity/metadata.xml b/sci-mathematics/planarity/metadata.xml
70 new file mode 100644
71 index 00000000000..d6f3a10ad53
72 --- /dev/null
73 +++ b/sci-mathematics/planarity/metadata.xml
74 @@ -0,0 +1,26 @@
75 +<?xml version="1.0" encoding="UTF-8"?>
76 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
77 +<pkgmetadata>
78 + <maintainer type="person">
79 + <email>mjo@g.o</email>
80 + </maintainer>
81 + <!--
82 + mjo: François maintained this package in the sage-on-gentoo overlay
83 + long before I moved it into ::gentoo. You don't need an ACK from me
84 + to merge his changes.
85 + -->
86 + <maintainer type="person">
87 + <email>frp.bissey@×××××.com</email>
88 + <name>François Bissey</name>
89 + </maintainer>
90 + <maintainer type="project">
91 + <email>proxy-maint@g.o</email>
92 + <name>Proxy Maintainers</name>
93 + </maintainer>
94 +
95 + <upstream>
96 + <remote-id type="github">
97 + graph-algorithms/edge-addition-planarity-suite
98 + </remote-id>
99 + </upstream>
100 +</pkgmetadata>
101
102 diff --git a/sci-mathematics/planarity/planarity-3.0.0.5.ebuild b/sci-mathematics/planarity/planarity-3.0.0.5.ebuild
103 new file mode 100644
104 index 00000000000..2deb388db70
105 --- /dev/null
106 +++ b/sci-mathematics/planarity/planarity-3.0.0.5.ebuild
107 @@ -0,0 +1,33 @@
108 +# Copyright 1999-2020 Gentoo Authors
109 +# Distributed under the terms of the GNU General Public License v2
110 +
111 +EAPI=7
112 +
113 +MY_PN="edge-addition-planarity-suite-Version"
114 +DESCRIPTION="The edge addition planarity suite of graph algorithms"
115 +HOMEPAGE="https://github.com/graph-algorithms/edge-addition-planarity-suite/"
116 +
117 +# Use the tarball from sage because the github release doesn't
118 +# contain the generated autotools files (like ./configure).
119 +SRC_URI="http://files.sagemath.org/spkg/upstream/${PN}/${P}.tar.gz"
120 +IUSE="examples static-libs"
121 +
122 +LICENSE="BSD"
123 +SLOT="0"
124 +KEYWORDS="~amd64 ~x86"
125 +
126 +# https://github.com/graph-algorithms/edge-addition-planarity-suite/issues/4
127 +# https://github.com/graph-algorithms/edge-addition-planarity-suite/pull/3
128 +PATCHES=( "${FILESDIR}/${P}-extern.patch" )
129 +
130 +S="${WORKDIR}/${MY_PN}_${PV}"
131 +
132 +src_configure(){
133 + econf $(use_enable static-libs static)
134 +}
135 +
136 +src_install(){
137 + default
138 + find "${ED}" -name '*.la' -delete || die
139 + use examples && dodoc -r c/samples
140 +}