aboutsummaryrefslogtreecommitdiffstats
path: root/cad
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2017-06-07 00:18:16 +0800
committermat <mat@FreeBSD.org>2017-06-07 00:18:16 +0800
commit1659205b84d4a8e89f9fe2fb09b42ba4aa4669d7 (patch)
tree5f4b0929a4e87f1210c33c147719daa95ce9085e /cad
parent439a42e43acf58e01e3f9fabb9bbf0a7f115d700 (diff)
downloadfreebsd-ports-gnome-1659205b84d4a8e89f9fe2fb09b42ba4aa4669d7.tar.gz
freebsd-ports-gnome-1659205b84d4a8e89f9fe2fb09b42ba4aa4669d7.tar.zst
freebsd-ports-gnome-1659205b84d4a8e89f9fe2fb09b42ba4aa4669d7.zip
Convert every usage of https://github.com/.../archive/xxx to USE_GITHUB.
While there, fix small style issues. Sponsored by: Absolight
Diffstat (limited to 'cad')
-rw-r--r--cad/fritzing/Makefile19
-rw-r--r--cad/fritzing/distinfo9
2 files changed, 12 insertions, 16 deletions
diff --git a/cad/fritzing/Makefile b/cad/fritzing/Makefile
index e0d4be3ff0c0..fbf580bd9719 100644
--- a/cad/fritzing/Makefile
+++ b/cad/fritzing/Makefile
@@ -3,12 +3,9 @@
PORTNAME= fritzing
PORTVERSION= 0.9.2
+DISTVERSIONSUFFIX= b
PORTREVISION= 6
CATEGORIES= cad
-MASTER_SITES= https://github.com/fritzing/fritzing-app/archive/:source \
- https://github.com/fritzing/fritzing-parts/archive/:parts
-DISTFILES= 0.9.2b.tar.gz:source 0.9.2b.zip:parts
-DIST_SUBDIR= ${PORTNAME}
MAINTAINER= lenzi.sergio@gmail.com
COMMENT= CAD for printed circuit boards
@@ -17,12 +14,12 @@ LICENSE= GPLv2+
SUB_FILES+= pkg-install
-WRKSRC= ${WRKDIR}/fritzing-app-${PORTVERSION}b
-
USES= dos2unix gmake python qmake tar:bzip2
USE_QT5= buildtools concurrent core dbus gui imageformats network printsupport qmake serialport sql-sqlite3 svg xml
DOS2UNIX_REGEX= .*pro
INSTALLS_ICONS= yes
+USE_GITHUB= yes
+GH_PROJECT= fritzing-app fritzing-parts:parts
PORTDATA= *
MAKE_ENV= INSTALL_ROOT="${STAGEDIR}"
@@ -31,15 +28,13 @@ BUILD_DEPENDS+= boost-libs>1.52:devel/boost-libs
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3
-.include <bsd.port.pre.mk>
-
post-extract:
- cd ${WRKDIR}/fritzing-parts-0.9.2b;\
+ cd ${WRKSRC_parts};\
${MKDIR} parts;${MV} -f * parts 2> /dev/null || true;\
${MKDIR} pdb;${MV} parts/core pdb;${MKDIR} parts/core;\
- ${MV} ${WRKDIR}/fritzing-app-0.9.2b/bins .
+ ${MV} ${WRKSRC}/bins .
post-install:
- ${CP} -rpf ${WRKDIR}/fritzing-parts-0.9.2b/* ${STAGEDIR}${LOCALBASE}/share/fritzing
+ cd ${WRKSRC_parts}; ${COPYTREE_SHARE} . ${STAGEDIR}${LOCALBASE}/share/fritzing
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/cad/fritzing/distinfo b/cad/fritzing/distinfo
index 309595203b6b..8a1a5c8c6f2e 100644
--- a/cad/fritzing/distinfo
+++ b/cad/fritzing/distinfo
@@ -1,4 +1,5 @@
-SHA256 (fritzing/0.9.2b.tar.gz) = 6e9dbb94a4ca5e23effc2056f471c78913b9efa4c154ced94de8f72bfe29735f
-SIZE (fritzing/0.9.2b.tar.gz) = 10913985
-SHA256 (fritzing/0.9.2b.zip) = 88f666926cd68fe74810f31dbb0c95b97a77f869246d0f5516f8f26162154c67
-SIZE (fritzing/0.9.2b.zip) = 22306870
+TIMESTAMP = 1496739838
+SHA256 (fritzing-fritzing-app-0.9.2b_GH0.tar.gz) = 6e9dbb94a4ca5e23effc2056f471c78913b9efa4c154ced94de8f72bfe29735f
+SIZE (fritzing-fritzing-app-0.9.2b_GH0.tar.gz) = 10913985
+SHA256 (fritzing-fritzing-parts-0.9.2b_GH0.tar.gz) = 5f5f5e26bfc33911f57b1620912fdf0a834c50d196b930ef70e784f3a447194b
+SIZE (fritzing-fritzing-parts-0.9.2b_GH0.tar.gz) = 15924206