mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
- Update to 0.6
- Uses new libstatgrab API in devel/libstatgrab - Use PYDISTUTILS_AUTOPLIST to generate the pkg-plist
This commit is contained in:
parent
40c71e39c4
commit
8162d3457d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=361789
@ -2,7 +2,7 @@
|
|||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
|
|
||||||
PORTNAME= statgrab
|
PORTNAME= statgrab
|
||||||
PORTVERSION= 0.5
|
PORTVERSION= 0.6
|
||||||
CATEGORIES= devel python
|
CATEGORIES= devel python
|
||||||
MASTER_SITES= http://ftp.uk.i-scream.org/pub/i-scream/%SUBDIR%/ \
|
MASTER_SITES= http://ftp.uk.i-scream.org/pub/i-scream/%SUBDIR%/ \
|
||||||
http://ftp.i-scream.org/pub/i-scream/%SUBDIR%/
|
http://ftp.i-scream.org/pub/i-scream/%SUBDIR%/
|
||||||
@ -13,11 +13,11 @@ DISTNAME= py${PORTNAME}-${PORTVERSION}
|
|||||||
MAINTAINER= tdb@FreeBSD.org
|
MAINTAINER= tdb@FreeBSD.org
|
||||||
COMMENT= Set of Python bindings for libstatgrab
|
COMMENT= Set of Python bindings for libstatgrab
|
||||||
|
|
||||||
LIB_DEPENDS= libstatgrab0.so:${PORTSDIR}/devel/libstatgrab0
|
LIB_DEPENDS= libstatgrab.so:${PORTSDIR}/devel/libstatgrab
|
||||||
|
|
||||||
USES= pkgconfig
|
USES= pkgconfig
|
||||||
USE_PYTHON= yes
|
USE_PYTHON= yes
|
||||||
USE_PYDISTUTILS= yes
|
USE_PYDISTUTILS= yes
|
||||||
PYDISTUTILS_PKGNAME= pystatgrab
|
PYDISTUTILS_AUTOPLIST= yes
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
SHA256 (pystatgrab-0.5.tar.gz) = f6a0b4a2dca70f346b8bbbd705b8dc772dc4e8c7cde2b2b83c85eb65c4cfe1d8
|
SHA256 (pystatgrab-0.6.tar.gz) = eee0a65e1084628008222223bafdbb3ce66dffd4aa03febb9e918e61ef0d08fe
|
||||||
SIZE (pystatgrab-0.5.tar.gz) = 26867
|
SIZE (pystatgrab-0.6.tar.gz) = 78763
|
||||||
|
@ -1,11 +0,0 @@
|
|||||||
--- ./_statgrab.c.orig 2014-05-10 23:16:37.500760465 +0100
|
|
||||||
+++ ./_statgrab.c 2007-07-13 23:28:28.000000000 +0100
|
|
||||||
@@ -11,7 +11,7 @@
|
|
||||||
#define __PYX_EXTERN_C extern
|
|
||||||
#endif
|
|
||||||
__PYX_EXTERN_C double pow(double, double);
|
|
||||||
-#include "statgrab.h"
|
|
||||||
+#include "statgrab0.h"
|
|
||||||
|
|
||||||
|
|
||||||
typedef struct {PyObject **p; char *s;} __Pyx_InternTabEntry; /*proto*/
|
|
@ -1,30 +0,0 @@
|
|||||||
--- ./setup.py.orig 2014-05-10 23:15:23.105771349 +0100
|
|
||||||
+++ ./setup.py 2014-05-10 23:16:18.509761277 +0100
|
|
||||||
@@ -39,12 +39,12 @@
|
|
||||||
sys.exit("Error, could not find pkg-config.")
|
|
||||||
|
|
||||||
# test for libstatgrab presence using pkg-config
|
|
||||||
-if os.system("pkg-config --exists libstatgrab"):
|
|
||||||
- sys.exit("Error, libstatgrab is not installed (according to pkg-config).")
|
|
||||||
+if os.system("pkg-config --exists libstatgrab0"):
|
|
||||||
+ sys.exit("Error, libstatgrab0 is not installed (according to pkg-config).")
|
|
||||||
|
|
||||||
# test for libstatgrab version using pkg-config
|
|
||||||
-if os.system("pkg-config --atleast-version=%s libstatgrab" % LIBSTATGRAB):
|
|
||||||
- sys.exit("Error, need at least libstatgrab version %s." % LIBSTATGRAB)
|
|
||||||
+if os.system("pkg-config --atleast-version=%s libstatgrab0" % LIBSTATGRAB):
|
|
||||||
+ sys.exit("Error, need at least libstatgrab0 version %s." % LIBSTATGRAB)
|
|
||||||
|
|
||||||
# test for _statgrab.c, and try to generate if not found
|
|
||||||
if not os.path.exists("_statgrab.c"):
|
|
||||||
@@ -56,8 +56,8 @@
|
|
||||||
sys.exit("Error, pyrexc failed to generate _statgrab.c")
|
|
||||||
|
|
||||||
# get cflags and libs for libstatgrab
|
|
||||||
-cflags = getstatusoutput("pkg-config --cflags libstatgrab")
|
|
||||||
-libs = getstatusoutput("pkg-config --libs libstatgrab")
|
|
||||||
+cflags = getstatusoutput("pkg-config --cflags libstatgrab0")
|
|
||||||
+libs = getstatusoutput("pkg-config --libs libstatgrab0")
|
|
||||||
|
|
||||||
if cflags[0] != 0:
|
|
||||||
sys.exit("Failed to get cflags: " + cflags[1])
|
|
@ -1,4 +0,0 @@
|
|||||||
%%PYTHON_SITELIBDIR%%/_statgrab.so
|
|
||||||
%%PYTHON_SITELIBDIR%%/statgrab.py
|
|
||||||
%%PYTHON_SITELIBDIR%%/statgrab.pyc
|
|
||||||
%%PYTHON_SITELIBDIR%%/statgrab.pyo
|
|
Loading…
Reference in New Issue
Block a user