1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-14 07:43:06 +00:00
freebsd-ports/cad/pythoncad/Makefile
Dmitry Marakasov 8ab2c962a1 - Fix fetch
Reported by:	QAT
2010-08-25 01:48:39 +00:00

40 lines
1.0 KiB
Makefile

# ex:ts=8
# Ports collection makefile for: pythoncad
# Date created: Nov 11, 2003
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= pythoncad
PORTVERSION= 37
CATEGORIES= cad
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/R${PORTVERSION}%20PyGtk/Source
DISTNAME= PythonCAD-DS1-R${PORTVERSION}
MAINTAINER= fbsd-ports@xbsd.net
COMMENT= An open-source CAD package built designed around Python
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/gtk-2.0/gtk/__init__.py:${PORTSDIR}/x11-toolkits/py-gtk2
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
USE_PYTHON= 2.2+
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 ${PREFIX}/bin/gtkpycad
${INSTALL_DATA} ${WRKSRC}/gtkpycad.png ${PREFIX}/share/pixmaps
${MKDIR} ${PREFIX}/etc/pythoncad
${INSTALL_DATA} ${WRKSRC}/prefs.py ${PREFIX}/etc/pythoncad/prefs.py.sample
.include <bsd.port.mk>