Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: palp-2.20
@ 2021-11-21 23:53 tornaria
  2021-11-22  0:41 ` [PR PATCH] [Updated] " tornaria
  2021-11-22 12:25 ` [PR PATCH] [Merged]: " leahneukirchen
  0 siblings, 2 replies; 3+ messages in thread
From: tornaria @ 2021-11-21 23:53 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 328 bytes --]

There is a new pull request by tornaria against master on the void-packages repository

https://github.com/tornaria/void-packages palp
https://github.com/void-linux/void-packages/pull/34191

New package: palp-2.20
Dependency of sagemath

A patch file from https://github.com/void-linux/void-packages/pull/34191.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-palp-34191.patch --]
[-- Type: text/x-diff, Size: 2137 bytes --]

From e11b519f416f87e9a579fa98de62789b3dd9a3ae Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sun, 21 Nov 2021 20:50:42 -0300
Subject: [PATCH] New package: palp-2.20

---
 srcpkgs/palp/template | 50 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)
 create mode 100644 srcpkgs/palp/template

diff --git a/srcpkgs/palp/template b/srcpkgs/palp/template
new file mode 100644
index 000000000000..a59454995e46
--- /dev/null
+++ b/srcpkgs/palp/template
@@ -0,0 +1,50 @@
+# Template file for 'palp'
+pkgname=palp
+version=2.20
+revision=1
+build_style=gnu-makefile
+short_desc="Package for analyzing lattice polytopes"
+maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
+license="GPL-3.0-only"
+homepage="http://hep.itp.tuwien.ac.at/~kreuzer/CY/CYpalp.html"
+distfiles="http://hep.itp.tuwien.ac.at/~kreuzer/CY/palp/palp-${version}.tar.gz"
+checksum=723e89e78b2d3d94a720dd770c11b932b3e6b56f8a49e0bf3621c776f7a02ce0
+
+
+# build procedure taken from sagemath, see
+# https://git.sagemath.org/sage.git/plain/build/pkgs/palp/spkg-install.in
+# https://github.com/archlinux/svntogit-community/blob/packages/palp/trunk/PKGBUILD
+do_build() {
+	: ${make_cmd:=make}
+
+	mkdir bin
+	mv Global.h Global.h-template
+
+	for dim in 4 5 6 11; do
+		echo Building PALP optimized for $dim dimensions
+		sed "s/^#define[^a-zA-Z]*POLY_Dmax.*/#define POLY_Dmax $dim/" Global.h-template > Global.h
+
+		${make_cmd} \
+			CC="$CC" CXX="$CXX" LD="$LD" AR="$AR" RANLIB="$RANLIB" \
+			CPP="$CPP" AS="$AS" OBJCOPY="$OBJCOPY" OBJDUMP="$OBJDUMP" \
+			CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" LDFLAGS="$LDFLAGS" \
+			${makejobs} ${make_build_args} ${make_build_target}
+
+		for file in poly class cws nef mori; do
+			mv ${file}.x bin/${file}-${dim}d.x
+		done
+
+		# make sure we rebuild after changing Global.h to avoid races
+		${make_cmd} cleanall
+    done
+}
+
+do_install() {
+	for file in poly class cws nef mori; do
+		for dim in 4 5 6 11; do
+			vbin bin/${file}-${dim}d.x
+		done
+		# symlink for the default dimension
+		ln -sf ${file}-6d.x ${DESTDIR}/usr/bin/${file}.x
+	done
+}

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

* Re: [PR PATCH] [Updated] New package: palp-2.20
  2021-11-21 23:53 [PR PATCH] New package: palp-2.20 tornaria
@ 2021-11-22  0:41 ` tornaria
  2021-11-22 12:25 ` [PR PATCH] [Merged]: " leahneukirchen
  1 sibling, 0 replies; 3+ messages in thread
From: tornaria @ 2021-11-22  0:41 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 333 bytes --]

There is an updated pull request by tornaria against master on the void-packages repository

https://github.com/tornaria/void-packages palp
https://github.com/void-linux/void-packages/pull/34191

New package: palp-2.20
Dependency of sagemath

A patch file from https://github.com/void-linux/void-packages/pull/34191.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-palp-34191.patch --]
[-- Type: text/x-diff, Size: 2137 bytes --]

From e11b519f416f87e9a579fa98de62789b3dd9a3ae Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Sun, 21 Nov 2021 20:50:42 -0300
Subject: [PATCH] New package: palp-2.20

---
 srcpkgs/palp/template | 50 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)
 create mode 100644 srcpkgs/palp/template

diff --git a/srcpkgs/palp/template b/srcpkgs/palp/template
new file mode 100644
index 000000000000..a59454995e46
--- /dev/null
+++ b/srcpkgs/palp/template
@@ -0,0 +1,50 @@
+# Template file for 'palp'
+pkgname=palp
+version=2.20
+revision=1
+build_style=gnu-makefile
+short_desc="Package for analyzing lattice polytopes"
+maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
+license="GPL-3.0-only"
+homepage="http://hep.itp.tuwien.ac.at/~kreuzer/CY/CYpalp.html"
+distfiles="http://hep.itp.tuwien.ac.at/~kreuzer/CY/palp/palp-${version}.tar.gz"
+checksum=723e89e78b2d3d94a720dd770c11b932b3e6b56f8a49e0bf3621c776f7a02ce0
+
+
+# build procedure taken from sagemath, see
+# https://git.sagemath.org/sage.git/plain/build/pkgs/palp/spkg-install.in
+# https://github.com/archlinux/svntogit-community/blob/packages/palp/trunk/PKGBUILD
+do_build() {
+	: ${make_cmd:=make}
+
+	mkdir bin
+	mv Global.h Global.h-template
+
+	for dim in 4 5 6 11; do
+		echo Building PALP optimized for $dim dimensions
+		sed "s/^#define[^a-zA-Z]*POLY_Dmax.*/#define POLY_Dmax $dim/" Global.h-template > Global.h
+
+		${make_cmd} \
+			CC="$CC" CXX="$CXX" LD="$LD" AR="$AR" RANLIB="$RANLIB" \
+			CPP="$CPP" AS="$AS" OBJCOPY="$OBJCOPY" OBJDUMP="$OBJDUMP" \
+			CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" LDFLAGS="$LDFLAGS" \
+			${makejobs} ${make_build_args} ${make_build_target}
+
+		for file in poly class cws nef mori; do
+			mv ${file}.x bin/${file}-${dim}d.x
+		done
+
+		# make sure we rebuild after changing Global.h to avoid races
+		${make_cmd} cleanall
+    done
+}
+
+do_install() {
+	for file in poly class cws nef mori; do
+		for dim in 4 5 6 11; do
+			vbin bin/${file}-${dim}d.x
+		done
+		# symlink for the default dimension
+		ln -sf ${file}-6d.x ${DESTDIR}/usr/bin/${file}.x
+	done
+}

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

* Re: [PR PATCH] [Merged]: New package: palp-2.20
  2021-11-21 23:53 [PR PATCH] New package: palp-2.20 tornaria
  2021-11-22  0:41 ` [PR PATCH] [Updated] " tornaria
@ 2021-11-22 12:25 ` leahneukirchen
  1 sibling, 0 replies; 3+ messages in thread
From: leahneukirchen @ 2021-11-22 12:25 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 178 bytes --]

There's a merged pull request on the void-packages repository

New package: palp-2.20
https://github.com/void-linux/void-packages/pull/34191

Description:
Dependency of sagemath

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

end of thread, other threads:[~2021-11-22 12:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-21 23:53 [PR PATCH] New package: palp-2.20 tornaria
2021-11-22  0:41 ` [PR PATCH] [Updated] " tornaria
2021-11-22 12:25 ` [PR PATCH] [Merged]: " leahneukirchen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).