diff options
author | nemysis <nemysis@FreeBSD.org> | 2014-03-06 21:34:59 +0800 |
---|---|---|
committer | nemysis <nemysis@FreeBSD.org> | 2014-03-06 21:34:59 +0800 |
commit | ae5d1f5706a16aa590517367f033cb3174d4e990 (patch) | |
tree | efaac5aae95361c74ab55335724e311b950c45fd /cad | |
parent | 11e3aa4fb55e6fa0908b7a12f4abf56bd96757b0 (diff) | |
download | freebsd-ports-gnome-ae5d1f5706a16aa590517367f033cb3174d4e990.tar.gz freebsd-ports-gnome-ae5d1f5706a16aa590517367f033cb3174d4e990.tar.zst freebsd-ports-gnome-ae5d1f5706a16aa590517367f033cb3174d4e990.zip |
BrickUtils is a simple utility for builders that use LEGO Digital Designer
or LDraw-compatible CAD for designing models.
WWW: http://bricksnspace.wordpress.com/brickutils/
Diffstat (limited to 'cad')
-rw-r--r-- | cad/Makefile | 1 | ||||
-rw-r--r-- | cad/brickutils/Makefile | 67 | ||||
-rw-r--r-- | cad/brickutils/distinfo | 4 | ||||
-rw-r--r-- | cad/brickutils/files/brickutils.in | 7 | ||||
-rw-r--r-- | cad/brickutils/files/patch-BrickUtils.desktop | 16 | ||||
-rw-r--r-- | cad/brickutils/files/pkg-message.in | 18 | ||||
-rw-r--r-- | cad/brickutils/pkg-descr | 4 | ||||
-rw-r--r-- | cad/brickutils/pkg-plist | 132 |
8 files changed, 249 insertions, 0 deletions
diff --git a/cad/Makefile b/cad/Makefile index fa9322565254..cd3155944169 100644 --- a/cad/Makefile +++ b/cad/Makefile @@ -10,6 +10,7 @@ SUBDIR += astk-serveur SUBDIR += atlc SUBDIR += basicdsp + SUBDIR += brickutils SUBDIR += brlcad SUBDIR += calculix SUBDIR += cascade diff --git a/cad/brickutils/Makefile b/cad/brickutils/Makefile new file mode 100644 index 000000000000..9131e1b11647 --- /dev/null +++ b/cad/brickutils/Makefile @@ -0,0 +1,67 @@ +# Created by: Rusmir Dusko <nemysis@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= brickutils +PORTVERSION= 0.1.6.1 +CATEGORIES= cad +MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-${PORTVERSION:R}/ \ + SF/nemysisfreebsdp/${CATEGORIES}/:icons +DISTFILES= BrickUtils-${PORTVERSION}${EXTRACT_SUFX} \ + ${PORTNAME}_icons${EXTRACT_SUFX}:icons + +MAINTAINER= nemysis@FreeBSD.org +COMMENT= Utility for building models with LEGO + +LICENSE= GPLv3 + +RUN_DEPENDS= ${LOCALBASE}/share/ldraw/models/car.dat:${PORTSDIR}/cad/ldraw \ + ${PYTHON_PACKAGENAMEPREFIX}sqlite3>0:${PORTSDIR}/databases/py-sqlite3 \ + ${PYXML} + +WRKSRC= ${WRKDIR}/BrickUtils-${PORTVERSION} + +USE_GNOME= pygtk2 +USE_PYTHON= yes + +PORTDOCS= ChangeLog +OPTIONS_DEFINE= DOCS + +SUB_FILES= ${PORTNAME} \ + pkg-message + +INSTALLS_ICONS= yes +ICON_SIZES= 32x32 48x48 64x64 72x72 96x96 128x128 + +post-patch: + @${REINPLACE_CMD} -e 's|/usr/share/|${PREFIX}|' \ + ${WRKSRC}/pyBrickUtils.py + +do-build: + @${PYTHON_CMD} -m compileall ${WRKSRC} + @${PYTHON_CMD} -O -m compileall ${WRKSRC} + +do-install: + @${REINPLACE_CMD} -e 's|%%PYTHON_CMD%%|${PYTHON_CMD}|' \ + ${WRKDIR}/${PORTNAME} + ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/ + +.for f in pyBrickUtils.py pyBrickUtils.pyc pyBrickUtils.pyo catalog.new + @(cd ${WRKSRC} && ${COPYTREE_SHARE} ${f} ${STAGEDIR}${DATADIR}) +.endfor + @(cd ${WRKSRC} && ${COPYTREE_SHARE} BrickUtils ${STAGEDIR}${DATADIR}) + ${INSTALL_DATA} ${WRKSRC}/BrickUtils.desktop ${STAGEDIR}${DESKTOPDIR} + @${CHMOD} -R 775 ${STAGEDIR}${DATADIR} + @(cd ${STAGEDIR}${DATADIR} && ${CHMOD} -R 664 catalog.new) + +.for s in ${ICON_SIZES} + @${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/ + ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}_${s}.png \ + ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/${PORTNAME}.png +.endfor + ${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png \ + ${STAGEDIR}${PREFIX}/share/pixmaps/ + + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} + +.include <bsd.port.mk> diff --git a/cad/brickutils/distinfo b/cad/brickutils/distinfo new file mode 100644 index 000000000000..e45e9af8b01d --- /dev/null +++ b/cad/brickutils/distinfo @@ -0,0 +1,4 @@ +SHA256 (BrickUtils-0.1.6.1.tar.gz) = eabbf2b403ab871b78a04b209fc76158dbaa7e7ecbd0b42a8c688162bb23d176 +SIZE (BrickUtils-0.1.6.1.tar.gz) = 4393902 +SHA256 (brickutils_icons.tar.gz) = dc6e1af19e83e1e152fe73a1ce1a74705e03d5534f546680553fded10bcac8c8 +SIZE (brickutils_icons.tar.gz) = 53918 diff --git a/cad/brickutils/files/brickutils.in b/cad/brickutils/files/brickutils.in new file mode 100644 index 000000000000..de3c3e9329cf --- /dev/null +++ b/cad/brickutils/files/brickutils.in @@ -0,0 +1,7 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +cd "%%DATADIR%%" +exec %%PYTHON_CMD%% ./pyBrickUtils.py "${@}" diff --git a/cad/brickutils/files/patch-BrickUtils.desktop b/cad/brickutils/files/patch-BrickUtils.desktop new file mode 100644 index 000000000000..4333d32d8252 --- /dev/null +++ b/cad/brickutils/files/patch-BrickUtils.desktop @@ -0,0 +1,16 @@ +--- ./BrickUtils.desktop.orig 2011-11-10 15:35:39.000000000 +0000 ++++ ./BrickUtils.desktop 2014-03-06 12:26:43.825846030 +0000 +@@ -3,10 +3,10 @@ + Encoding=UTF-8 + Name=BrickUtils + Comment=Brick utilities and database for builders +-Exec=python /usr/bin/pyBrickUtils.py +-Icon=/usr/share/BrickUtils/BrickUtils.ico ++Exec=brickutils ++Icon=brickutils + Terminal=false + StartupNotify=false + Type=Application +- ++Categories=Graphics;3DGraphics;Education; + diff --git a/cad/brickutils/files/pkg-message.in b/cad/brickutils/files/pkg-message.in new file mode 100644 index 000000000000..760549f235b4 --- /dev/null +++ b/cad/brickutils/files/pkg-message.in @@ -0,0 +1,18 @@ +=============================================================================== + +BrickUtils has been installed. + +After first usage you will not find + + %%DATADIR%%/catalog.new + +Here is a new catalog + + %%DATADIR%%/catalog.sq3 + +After deinstallation, some files may stay in %%DATADIR%%, +you can delete them with + + /bin/rm -fr %%DATADIR%% + +=============================================================================== diff --git a/cad/brickutils/pkg-descr b/cad/brickutils/pkg-descr new file mode 100644 index 000000000000..5b4f611dd6d9 --- /dev/null +++ b/cad/brickutils/pkg-descr @@ -0,0 +1,4 @@ +BrickUtils is a simple utility for builders that use LEGO Digital Designer +or LDraw-compatible CAD for designing models. + +WWW: http://bricksnspace.wordpress.com/brickutils/ diff --git a/cad/brickutils/pkg-plist b/cad/brickutils/pkg-plist new file mode 100644 index 000000000000..c90888117b69 --- /dev/null +++ b/cad/brickutils/pkg-plist @@ -0,0 +1,132 @@ +bin/brickutils +share/applications/BrickUtils.desktop +%%DATADIR%%/BrickUtils/BLExportXML.py +%%DATADIR%%/BrickUtils/BLExportXML.pyc +%%DATADIR%%/BrickUtils/BLExportXML.pyo +%%DATADIR%%/BrickUtils/BLPartSearch.py +%%DATADIR%%/BrickUtils/BLPartSearch.pyc +%%DATADIR%%/BrickUtils/BLPartSearch.pyo +%%DATADIR%%/BrickUtils/BrickEditDialog.py +%%DATADIR%%/BrickUtils/BrickEditDialog.pyc +%%DATADIR%%/BrickUtils/BrickEditDialog.pyo +%%DATADIR%%/BrickUtils/BrickException.py +%%DATADIR%%/BrickUtils/BrickException.pyc +%%DATADIR%%/BrickUtils/BrickException.pyo +%%DATADIR%%/BrickUtils/BrickImage.py +%%DATADIR%%/BrickUtils/BrickImage.pyc +%%DATADIR%%/BrickUtils/BrickImage.pyo +%%DATADIR%%/BrickUtils/BrickListStore.py +%%DATADIR%%/BrickUtils/BrickListStore.pyc +%%DATADIR%%/BrickUtils/BrickListStore.pyo +%%DATADIR%%/BrickUtils/BrickListView.py +%%DATADIR%%/BrickUtils/BrickListView.pyc +%%DATADIR%%/BrickUtils/BrickListView.pyo +%%DATADIR%%/BrickUtils/CatalogDB.py +%%DATADIR%%/BrickUtils/CatalogDB.pyc +%%DATADIR%%/BrickUtils/CatalogDB.pyo +%%DATADIR%%/BrickUtils/CatalogImportExport.py +%%DATADIR%%/BrickUtils/CatalogImportExport.pyc +%%DATADIR%%/BrickUtils/CatalogImportExport.pyo +%%DATADIR%%/BrickUtils/CatalogStore.py +%%DATADIR%%/BrickUtils/CatalogStore.pyc +%%DATADIR%%/BrickUtils/CatalogStore.pyo +%%DATADIR%%/BrickUtils/CatalogView.py +%%DATADIR%%/BrickUtils/CatalogView.pyc +%%DATADIR%%/BrickUtils/CatalogView.pyo +%%DATADIR%%/BrickUtils/CheckBuildableDialog.py +%%DATADIR%%/BrickUtils/CheckBuildableDialog.pyc +%%DATADIR%%/BrickUtils/CheckBuildableDialog.pyo +%%DATADIR%%/BrickUtils/ColorMaintDialog.py +%%DATADIR%%/BrickUtils/ColorMaintDialog.pyc +%%DATADIR%%/BrickUtils/ColorMaintDialog.pyo +%%DATADIR%%/BrickUtils/DBUpdate.py +%%DATADIR%%/BrickUtils/DBUpdate.pyc +%%DATADIR%%/BrickUtils/DBUpdate.pyo +%%DATADIR%%/BrickUtils/ExportHTML.py +%%DATADIR%%/BrickUtils/ExportHTML.pyc +%%DATADIR%%/BrickUtils/ExportHTML.pyo +%%DATADIR%%/BrickUtils/ImportBLSetDialog.py +%%DATADIR%%/BrickUtils/ImportBLSetDialog.pyc +%%DATADIR%%/BrickUtils/ImportBLSetDialog.pyo +%%DATADIR%%/BrickUtils/ImportLDDProjectDialog.py +%%DATADIR%%/BrickUtils/ImportLDDProjectDialog.pyc +%%DATADIR%%/BrickUtils/ImportLDDProjectDialog.pyo +%%DATADIR%%/BrickUtils/ImportLDrawDialog.py +%%DATADIR%%/BrickUtils/ImportLDrawDialog.pyc +%%DATADIR%%/BrickUtils/ImportLDrawDialog.pyo +%%DATADIR%%/BrickUtils/LDDComposite.py +%%DATADIR%%/BrickUtils/LDDComposite.pyc +%%DATADIR%%/BrickUtils/LDDComposite.pyo +%%DATADIR%%/BrickUtils/LDRPartSearch.py +%%DATADIR%%/BrickUtils/LDRPartSearch.pyc +%%DATADIR%%/BrickUtils/LDRPartSearch.pyo +%%DATADIR%%/BrickUtils/LDrawImportLib.py +%%DATADIR%%/BrickUtils/LDrawImportLib.pyc +%%DATADIR%%/BrickUtils/LDrawImportLib.pyo +%%DATADIR%%/BrickUtils/LDrawMaintDialog.py +%%DATADIR%%/BrickUtils/LDrawMaintDialog.pyc +%%DATADIR%%/BrickUtils/LDrawMaintDialog.pyo +%%DATADIR%%/BrickUtils/ParseBLCodesXML.py +%%DATADIR%%/BrickUtils/ParseBLCodesXML.pyc +%%DATADIR%%/BrickUtils/ParseBLCodesXML.pyo +%%DATADIR%%/BrickUtils/ParseBLSetXML.py +%%DATADIR%%/BrickUtils/ParseBLSetXML.pyc +%%DATADIR%%/BrickUtils/ParseBLSetXML.pyo +%%DATADIR%%/BrickUtils/ParseLDDXML.py +%%DATADIR%%/BrickUtils/ParseLDDXML.pyc +%%DATADIR%%/BrickUtils/ParseLDDXML.pyo +%%DATADIR%%/BrickUtils/PartEditDialog.py +%%DATADIR%%/BrickUtils/PartEditDialog.pyc +%%DATADIR%%/BrickUtils/PartEditDialog.pyo +%%DATADIR%%/BrickUtils/PartsMaintDialog.py +%%DATADIR%%/BrickUtils/PartsMaintDialog.pyc +%%DATADIR%%/BrickUtils/PartsMaintDialog.pyo +%%DATADIR%%/BrickUtils/ProgressDialog.py +%%DATADIR%%/BrickUtils/ProgressDialog.pyc +%%DATADIR%%/BrickUtils/ProgressDialog.pyo +%%DATADIR%%/BrickUtils/SanityChecksDialog.py +%%DATADIR%%/BrickUtils/SanityChecksDialog.pyc +%%DATADIR%%/BrickUtils/SanityChecksDialog.pyo +%%DATADIR%%/BrickUtils/SetSelection.py +%%DATADIR%%/BrickUtils/SetSelection.pyc +%%DATADIR%%/BrickUtils/SetSelection.pyo +%%DATADIR%%/BrickUtils/SetStore.py +%%DATADIR%%/BrickUtils/SetStore.pyc +%%DATADIR%%/BrickUtils/SetStore.pyo +%%DATADIR%%/BrickUtils/SetView.py +%%DATADIR%%/BrickUtils/SetView.pyc +%%DATADIR%%/BrickUtils/SetView.pyo +%%DATADIR%%/BrickUtils/UpdateBLColors.py +%%DATADIR%%/BrickUtils/UpdateBLColors.pyc +%%DATADIR%%/BrickUtils/UpdateBLColors.pyo +%%DATADIR%%/BrickUtils/UpdateBLParts.py +%%DATADIR%%/BrickUtils/UpdateBLParts.pyc +%%DATADIR%%/BrickUtils/UpdateBLParts.pyo +%%DATADIR%%/BrickUtils/UpdateLDrawDialog.py +%%DATADIR%%/BrickUtils/UpdateLDrawDialog.pyc +%%DATADIR%%/BrickUtils/UpdateLDrawDialog.pyo +%%DATADIR%%/BrickUtils/UpdateLdrawXML.py +%%DATADIR%%/BrickUtils/UpdateLdrawXML.pyc +%%DATADIR%%/BrickUtils/UpdateLdrawXML.pyo +%%DATADIR%%/BrickUtils/UpgradeDatabases.py +%%DATADIR%%/BrickUtils/UpgradeDatabases.pyc +%%DATADIR%%/BrickUtils/UpgradeDatabases.pyo +%%DATADIR%%/BrickUtils/__init__.py +%%DATADIR%%/BrickUtils/__init__.pyc +%%DATADIR%%/BrickUtils/__init__.pyo +%%DATADIR%%/BrickUtils/progInfo.py +%%DATADIR%%/BrickUtils/progInfo.pyc +%%DATADIR%%/BrickUtils/progInfo.pyo +%%DATADIR%%/catalog.new +%%DATADIR%%/pyBrickUtils.py +%%DATADIR%%/pyBrickUtils.pyc +%%DATADIR%%/pyBrickUtils.pyo +share/icons/hicolor/128x128/apps/brickutils.png +share/icons/hicolor/32x32/apps/brickutils.png +share/icons/hicolor/48x48/apps/brickutils.png +share/icons/hicolor/64x64/apps/brickutils.png +share/icons/hicolor/72x72/apps/brickutils.png +share/icons/hicolor/96x96/apps/brickutils.png +share/pixmaps/brickutils.png +@dirrm %%DATADIR%%/BrickUtils +@dirrmtry %%DATADIR%% |