mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
3b5bf7c929
- Pet portlint PR: ports/188821 Submitted by: Bartek Rutkowski <ports@robakdesign.com> Approved by: portmgr@ (blanket)
36 lines
1.0 KiB
Makefile
36 lines
1.0 KiB
Makefile
# Created by: ijliao
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= pythoncad
|
|
PORTVERSION= 37
|
|
PORTREVISION= 1
|
|
CATEGORIES= cad
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/R${PORTVERSION}%20PyGtk/Source
|
|
DISTNAME= PythonCAD-DS1-R${PORTVERSION}
|
|
|
|
MAINTAINER= fbsd-ports@xbsd.net
|
|
COMMENT= Open-source CAD package built designed around Python
|
|
|
|
LICENSE= GPLv2
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/gtk-2.0/gtk/__init__.py:${PORTSDIR}/x11-toolkits/py-gtk2
|
|
|
|
USE_PYTHON= yes
|
|
USE_PYDISTUTILS= yes
|
|
PYDISTUTILS_PKGNAME= PythonCAD
|
|
PYDISTUTILS_PKGVERSION= DS1-R${PORTVERSION}
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|' \
|
|
${WRKSRC}/PythonCAD/Generic/preferences.py \
|
|
${WRKSRC}/PythonCAD/Interface/Gtk/gtkimage.py
|
|
|
|
post-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/gtkpycad.py ${STAGEDIR}${PREFIX}/bin/gtkpycad
|
|
${INSTALL_DATA} ${WRKSRC}/gtkpycad.png ${STAGEDIR}${PREFIX}/share/pixmaps
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/etc/pythoncad
|
|
${INSTALL_DATA} ${WRKSRC}/prefs.py ${STAGEDIR}${PREFIX}/etc/pythoncad/prefs.py.sample
|
|
|
|
.include <bsd.port.mk>
|