2013-09-20 17:58:41 +02:00
|
|
|
# Created by: ijliao
|
2003-11-12 03:01:27 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= pythoncad
|
2010-08-24 19:47:47 +02:00
|
|
|
PORTVERSION= 37
|
2017-04-18 06:49:15 +02:00
|
|
|
PORTREVISION= 2
|
2003-11-12 03:01:27 +01:00
|
|
|
CATEGORIES= cad
|
2010-08-25 03:48:39 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/R${PORTVERSION}%20PyGtk/Source
|
2003-11-12 03:01:27 +01:00
|
|
|
DISTNAME= PythonCAD-DS1-R${PORTVERSION}
|
|
|
|
|
2015-08-19 10:13:15 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2014-04-26 23:01:23 +02:00
|
|
|
COMMENT= Open-source CAD package built designed around Python
|
2003-11-12 03:01:27 +01:00
|
|
|
|
2017-04-20 17:55:13 +02:00
|
|
|
LICENSE= GPLv2+
|
2010-08-24 19:47:47 +02:00
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
|
2016-04-01 15:29:15 +02:00
|
|
|
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/gtk-2.0/gtk/__init__.py:x11-toolkits/py-gtk2
|
2014-04-26 23:01:23 +02:00
|
|
|
|
2017-04-20 17:55:13 +02:00
|
|
|
USES= python shebangfix
|
|
|
|
USE_PYTHON= distutils
|
2007-07-30 11:42:28 +02:00
|
|
|
PYDISTUTILS_PKGNAME= PythonCAD
|
2007-07-30 20:20:01 +02:00
|
|
|
PYDISTUTILS_PKGVERSION= DS1-R${PORTVERSION}
|
2017-04-20 17:55:13 +02:00
|
|
|
NO_ARCH= yes
|
2017-04-18 06:49:15 +02:00
|
|
|
SHEBANG_FILES= gtkpycad.py
|
2003-11-12 03:01:27 +01:00
|
|
|
|
2010-08-24 19:47:47 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|' \
|
|
|
|
${WRKSRC}/PythonCAD/Generic/preferences.py \
|
|
|
|
${WRKSRC}/PythonCAD/Interface/Gtk/gtkimage.py
|
|
|
|
|
2003-11-12 03:01:27 +01:00
|
|
|
post-install:
|
2014-04-26 23:01:23 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/gtkpycad.py ${STAGEDIR}${PREFIX}/bin/gtkpycad
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/gtkpycad.png ${STAGEDIR}${PREFIX}/share/pixmaps
|
2017-04-20 17:55:13 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/pythoncad
|
2014-04-26 23:01:23 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/prefs.py ${STAGEDIR}${PREFIX}/etc/pythoncad/prefs.py.sample
|
2003-11-12 03:01:27 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|