Github messages for voidlinux
 help / color / mirror / Atom feed
From: Eloitor <Eloitor@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: frobby-0.9.5
Date: Fri, 14 Apr 2023 15:09:54 +0200	[thread overview]
Message-ID: <20230414130954.DwSns0m4g2IdM7yd7tCHw3n0BAWfQ01n__iNTOvBS9o@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-43440@inbox.vuxu.org>

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

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

https://github.com/Eloitor/void-packages frobby
https://github.com/void-linux/void-packages/pull/43440

New package: frobby-0.9.5
#### Testing the changes
- I tested the changes in this PR: **briefly**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-musl)

This package can be used by sagemath and Macaulay2 #35873


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

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

From 559aa5a980e6146033f625c182cd38a8c90e81bc Mon Sep 17 00:00:00 2001
From: Eloi Torrents <eloitor@disroot.org>
Date: Fri, 14 Apr 2023 00:03:13 +0200
Subject: [PATCH] New package: frobby-0.9.5

---
 srcpkgs/frobby-devel                  |  1 +
 srcpkgs/frobby/patches/Makefile.patch | 35 +++++++++++++++++++++++++++
 srcpkgs/frobby/template               | 28 +++++++++++++++++++++
 3 files changed, 64 insertions(+)
 create mode 120000 srcpkgs/frobby-devel
 create mode 100644 srcpkgs/frobby/patches/Makefile.patch
 create mode 100644 srcpkgs/frobby/template

diff --git a/srcpkgs/frobby-devel b/srcpkgs/frobby-devel
new file mode 120000
index 000000000000..5a25e67f7b46
--- /dev/null
+++ b/srcpkgs/frobby-devel
@@ -0,0 +1 @@
+frobby
\ No newline at end of file
diff --git a/srcpkgs/frobby/patches/Makefile.patch b/srcpkgs/frobby/patches/Makefile.patch
new file mode 100644
index 000000000000..2269f8bfde61
--- /dev/null
+++ b/srcpkgs/frobby/patches/Makefile.patch
@@ -0,0 +1,35 @@
+diff --git a/Makefile b/Makefile
+index 36a3778..2529515 100644
+--- a/Makefile
++++ b/Makefile
+@@ -6,10 +6,8 @@
+ # ========================
+ # For GMP set **both**  GMP_INC_DIR  **and**  ldflags_for_gmp
+ # If you have a system installation of GMP with C++ support use next 2 lines:
+-# GMP_INC_DIR=
+-# ldflags_for_gmp=-lgmpxx -lgmp
+-GMP_INC_DIR=/usr/local/include
+-ldflags_for_gmp=-L/usr/local/lib -lgmpxx -lgmp
++GMP_INC_DIR=
++ldflags_for_gmp=-lgmpxx -lgmp
+ 
+ 
+ 
+@@ -80,7 +78,7 @@ ifndef CXX
+ endif
+ 
+ ifndef BIN_INSTALL_DIR
+-  BIN_INSTALL_DIR = "/usr/local/bin/"
++  BIN_INSTALL_DIR = "/usr/bin/"
+ endif
+ 
+ cxxflags = $(CXXFLAGS) $(CPPFLAGS) -I $(GMP_INC_DIR) -Wno-uninitialized -Wno-unused-parameter
+@@ -252,7 +250,7 @@ endif
+ 
+ -include $(objs:.o=.d)
+ 
+-PREFIX ?= /usr/local
++PREFIX ?= /usr
+ MAN1DIR ?= $(PREFIX)/share/man/man1
+ 
+ # Installation.
diff --git a/srcpkgs/frobby/template b/srcpkgs/frobby/template
new file mode 100644
index 000000000000..99ead8fe3ef2
--- /dev/null
+++ b/srcpkgs/frobby/template
@@ -0,0 +1,28 @@
+# Template file for 'frobby'
+pkgname=frobby
+version=0.9.5
+revision=1
+build_style=gnu-makefile
+makedepends="gmp-devel gmpxx-devel"
+short_desc="Computations with monomial ideals"
+maintainer="Eloi Torrents <eloitor@disroot.org>"
+license="GPL-2.0-only"
+homepage="https://github.com/Macaulay2/frobby"
+changelog="https://raw.githubusercontent.com/Macaulay2/frobby/master/changelog.txt"
+distfiles="https://github.com/Macaulay2/frobby/archive/refs/tags/v${version}.tar.gz"
+checksum=714c33c4f68e86d82062d7a42ad42c581d4b4c60d6a73ee1836ba1be7f985eb3
+
+post_build() {
+	RANLIB=/usr/bin/ranlib make CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" library
+}
+
+frobby-devel_package() {
+	short_desc+=" - development files"
+	depends="${sourcepkg}>=${version}_${revision}"
+	pkg_install() {
+		vmkdir usr/include
+		vcopy src/frobby.h usr/include
+		vcopy src/stdinc.h usr/include
+		vcopy bin/libfrobby.a usr/lib
+	}
+}

  reply	other threads:[~2023-04-14 13:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-14 13:04 [PR PATCH] " Eloitor
2023-04-14 13:09 ` Eloitor [this message]
2023-04-14 13:12 ` Eloitor
2023-06-25 17:50 ` [PR PATCH] [Merged]: " Duncaen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230414130954.DwSns0m4g2IdM7yd7tCHw3n0BAWfQ01n__iNTOvBS9o@z \
    --to=eloitor@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).