diff --git a/srcpkgs/frobby-devel b/srcpkgs/frobby-devel new file mode 120000 index 00000000000..5a25e67f7b4 --- /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 00000000000..2269f8bfde6 --- /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 00000000000..99ead8fe3ef --- /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 " +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 + } +}