From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0FD0E15802E for ; Thu, 27 Jun 2024 14:36:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3EB23E2B07; Thu, 27 Jun 2024 14:36:47 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1CCADE2B07 for ; Thu, 27 Jun 2024 14:36:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3419B335C52 for ; Thu, 27 Jun 2024 14:36:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BDF681B05 for ; Thu, 27 Jun 2024 14:36:44 +0000 (UTC) From: "Alexander Puck Neuwirth" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alexander Puck Neuwirth" Message-ID: <1719498927.1fcfb0a871880d7a30b08ec85c33707220da11d1.alexander@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: sci-mathematics/Oid/files/, sci-mathematics/Oid/ X-VCS-Repository: proj/sci X-VCS-Files: sci-mathematics/Oid/Oid-4.0-r1.ebuild sci-mathematics/Oid/Oid-4.0.ebuild sci-mathematics/Oid/files/Oid-4.0-bezier.patch X-VCS-Directories: sci-mathematics/Oid/files/ sci-mathematics/Oid/ X-VCS-Committer: alexander X-VCS-Committer-Name: Alexander Puck Neuwirth X-VCS-Revision: 1fcfb0a871880d7a30b08ec85c33707220da11d1 X-VCS-Branch: master Date: Thu, 27 Jun 2024 14:36:44 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f097428c-6812-478d-9ff6-a658dcd1a1bf X-Archives-Hash: 5e8b626c2f1dc3061cd6977f29a71722 commit: 1fcfb0a871880d7a30b08ec85c33707220da11d1 Author: Alexander Puck Neuwirth neuwirth-informatik de> AuthorDate: Fri Feb 16 21:07:46 2024 +0000 Commit: Alexander Puck Neuwirth neuwirth-informatik de> CommitDate: Thu Jun 27 14:35:27 2024 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=1fcfb0a8 sci-mathematics/Oid: Fix java, update URLs Co-authored-by: Andrew Nowa Ammerlaan gentoo.org> Closes: https://github.com/gentoo/sci/pull/1240 Signed-off-by: Alexander Puck Neuwirth neuwirth-informatik.de> .../Oid/{Oid-4.0.ebuild => Oid-4.0-r1.ebuild} | 26 +++++++++++++++------- sci-mathematics/Oid/files/Oid-4.0-bezier.patch | 11 +++++++++ 2 files changed, 29 insertions(+), 8 deletions(-) diff --git a/sci-mathematics/Oid/Oid-4.0.ebuild b/sci-mathematics/Oid/Oid-4.0-r1.ebuild similarity index 55% rename from sci-mathematics/Oid/Oid-4.0.ebuild rename to sci-mathematics/Oid/Oid-4.0-r1.ebuild index ce967fd46..2c02ef51b 100644 --- a/sci-mathematics/Oid/Oid-4.0.ebuild +++ b/sci-mathematics/Oid/Oid-4.0-r1.ebuild @@ -1,7 +1,7 @@ # Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 inherit java-pkg-2 @@ -9,28 +9,38 @@ MY_PV="${PV//./-}" MY_P="${PN}${MY_PV}" DESCRIPTION="An interactive, extensible software system for experimenting with matroids" -HOMEPAGE="https://sites.google.com/site/wwwmatroids/" +HOMEPAGE="http://userhome.brooklyn.cuny.edu/skingan/matroids/software.html" SRC_URI=" - https://sites.google.com/site/wwwmatroids/${MY_P}.tar.gz -> ${P}.tar.gz - https://sites.google.com/site/wwwmatroids/${PN}UserManual${MY_PV}.pdf + http://userhome.brooklyn.cuny.edu/skingan/matroids/${MY_P}.tar.gz -> ${P}.tar.gz + http://userhome.brooklyn.cuny.edu/skingan/matroids/${PN}UserManual${MY_PV}.pdf " KEYWORDS="~amd64 ~x86" SLOT="0" LICENSE="GPL-2" -DEPEND=">=virtual/jdk-1.4:*" -RDEPEND=">=virtual/jre-1.4:*" +DEPEND=">=virtual/jdk-1.7:*" +RDEPEND=">=virtual/jre-1.7:*" # The source uses 'enum' as an identifier, therefore: -JAVA_PKG_WANT_SOURCE="1.4" +JAVA_PKG_WANT_SOURCE="1.7" +JAVA_PKG_WANT_TARGET="1.7" S="${WORKDIR}" +PATCHES=( + "${FILESDIR}/${P}-bezier.patch" +) + src_prepare () { mkdir classes || die # change path names sed -i -e 's:NAME = ":NAME = "/usr/share/Oid/:' MatroidToolkit.java || die + # replace all enum, since after 1.4 java it is a keywords + sed -i -e 's:enum:enum_as_a_key_is_no_longer_allowed:g' \ + Oid/PGFactory.java \ + DisplayGeom.java \ + VisRank3ModularCuts.java || die default } @@ -45,7 +55,7 @@ src_install () { java-pkg_dojar Oid.jar java-pkg_dolauncher - dodoc "${DISTDIR}"/OidUserManual4-0.pdf + dodoc "${DISTDIR}"/${PN}UserManual${MY_PV}.pdf insinto /usr/share/Oid doins matroid*.txt diff --git a/sci-mathematics/Oid/files/Oid-4.0-bezier.patch b/sci-mathematics/Oid/files/Oid-4.0-bezier.patch new file mode 100644 index 000000000..56dd64a99 --- /dev/null +++ b/sci-mathematics/Oid/files/Oid-4.0-bezier.patch @@ -0,0 +1,11 @@ +--- a/DisplayGeom.java 2024-02-16 22:01:22.213390949 +0100 ++++ b/DisplayGeom.java 2024-02-16 22:01:26.106781457 +0100 +@@ -7844,7 +7844,7 @@ + // are c1 and c2. The tangent of the curve at p1 is determined + // by the line between p1 and c1. Likewise, the tangent at p2 + // is determined by a line from p2 to c2. These curves are also +- // called Bézier curves. ++ // called Bezier curves. + + //permStorage.removeAllElements(); + //finalStorage.removeAllElements();