svn commit: r407684 - in head/cad: . fritzing fritzing/files

Kurt Jaeger pi at FreeBSD.org
Mon Feb 1 06:23:45 UTC 2016


Author: pi
Date: Mon Feb  1 06:23:42 2016
New Revision: 407684
URL: https://svnweb.freebsd.org/changeset/ports/407684

Log:
  New port: cad/fritzing
  
  Fritzing is an Electronic Design Automation software with a low
  entry barrier, suited for the needs of designers and artists. It
  uses the metaphor of the breadboard, so that it is easy to transfer
  your hardware sketch to the software. From there it is possible to
  create PCB layouts for turning it into a robust PCB yourself or by
  help of a manufacturer.
  
  WWW: http://fritzing.org/
  
  PR:		206697
  Submitted by:	lenzi.sergio at gmail.com

Added:
  head/cad/fritzing/
  head/cad/fritzing/Makefile   (contents, props changed)
  head/cad/fritzing/distinfo   (contents, props changed)
  head/cad/fritzing/files/
  head/cad/fritzing/files/patch-fritzing.desktop   (contents, props changed)
  head/cad/fritzing/files/patch-phoenix.pro   (contents, props changed)
  head/cad/fritzing/files/pkg-install.in   (contents, props changed)
  head/cad/fritzing/pkg-descr   (contents, props changed)
  head/cad/fritzing/pkg-plist   (contents, props changed)
Modified:
  head/cad/Makefile

Modified: head/cad/Makefile
==============================================================================
--- head/cad/Makefile	Mon Feb  1 06:10:21 2016	(r407683)
+++ head/cad/Makefile	Mon Feb  1 06:23:42 2016	(r407684)
@@ -25,6 +25,7 @@
     SUBDIR += feappv
     SUBDIR += fidocadj
     SUBDIR += freehdl
+    SUBDIR += fritzing
     SUBDIR += gdsreader
     SUBDIR += gdt
     SUBDIR += geda

Added: head/cad/fritzing/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/cad/fritzing/Makefile	Mon Feb  1 06:23:42 2016	(r407684)
@@ -0,0 +1,45 @@
+# Created by: Sergio Lenzi <lenzi.sergio at gmail.com>
+# $FreeBSD$
+
+PORTNAME=	fritzing
+PORTVERSION=	0.9.2
+PORTREVISION=	3
+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 at gmail.com
+COMMENT=	CAD for printed circuit boards
+
+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
+
+PORTDATA=	*
+MAKE_ENV=	INSTALL_ROOT="${STAGEDIR}"
+
+BUILD_DEPENDS+=	boost-libs>1.52:${PORTSDIR}/devel/boost-libs
+
+RUN_DEPENDS+=	py${PYTHON_SUFFIX}-sqlite3>0:${PORTSDIR}/databases/py-sqlite3
+
+.include <bsd.port.pre.mk>
+
+post-extract:
+	cd ${WRKDIR}/fritzing-parts-0.9.2b;\
+	${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 .
+
+post-install:
+	${CP} -rpf ${WRKDIR}/fritzing-parts-0.9.2b/* ${STAGEDIR}${LOCALBASE}/share/fritzing
+
+.include <bsd.port.post.mk>

Added: head/cad/fritzing/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/cad/fritzing/distinfo	Mon Feb  1 06:23:42 2016	(r407684)
@@ -0,0 +1,4 @@
+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

Added: head/cad/fritzing/files/patch-fritzing.desktop
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/cad/fritzing/files/patch-fritzing.desktop	Mon Feb  1 06:23:42 2016	(r407684)
@@ -0,0 +1,11 @@
+--- fritzing.desktop.orig	2015-03-17 13:36:55 UTC
++++ fritzing.desktop
+@@ -2,7 +2,7 @@
+ Name=Fritzing
+ GenericName=Fritzing
+ Comment=Electronic Design Automation software
+-Exec=Fritzing
++Exec=Fritzing -f /usr/local/share/fritzing
+ Icon=fritzing
+ Terminal=false
+ Type=Application

Added: head/cad/fritzing/files/patch-phoenix.pro
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/cad/fritzing/files/patch-phoenix.pro	Mon Feb  1 06:23:42 2016	(r407684)
@@ -0,0 +1,44 @@
+--- phoenix.pro.orig	2016-01-31 22:20:45 UTC
++++ phoenix.pro
+@@ -31,7 +31,7 @@
+ # QTPLUGIN  += qjpeg qsqlite
+ 
+ 
+-CONFIG += debug_and_release
++CONFIG += release
+ win32 {
+ # release build using msvc 2010 needs to use Multi-threaded (/MT) for the code generation/runtime library option
+ # release build using msvc 2010 needs to add msvcrt.lib;%(IgnoreSpecificDefaultLibraries) to the linker/no default libraries option
+@@ -92,7 +92,7 @@ macx {
+ unix {
+     !macx { # unix is defined on mac
+         HARDWARE_PLATFORM = $$system(uname -m)
+-        contains( HARDWARE_PLATFORM, x86_64 ) {
++        contains( HARDWARE_PLATFORM, amd64 ) {
+             DEFINES += LINUX_64
+         } else {
+             DEFINES += LINUX_32
+@@ -101,7 +101,7 @@ unix {
+     }
+ 
+         isEmpty(PREFIX) {
+-                PREFIX = /usr
++                PREFIX = /usr/local
+         }
+         BINDIR = $$PREFIX/bin
+         DATADIR = $$PREFIX/share
+@@ -114,11 +114,11 @@ unix {
+         desktop.path = $$DATADIR/applications
+         desktop.files += fritzing.desktop
+ 
+-        manpage.path = $$DATADIR/man/man1
++        manpage.path = /usr/local/man/man1
+         manpage.files += Fritzing.1
+ 
+-        icon.path = $$DATADIR/icons
+-        icon.extra = install -D -m 0644 $$PWD/resources/images/fritzing_icon.png $(INSTALL_ROOT)$$DATADIR/icons/fritzing.png
++        icon.path = $$DATADIR/icons/hicolor/64x64/apps
++        icon.extra = install -m 0644 $$PWD/resources/images/fritzing_icon.png $(INSTALL_ROOT)$$DATADIR/icons/hicolor/64x64/apps/fritzing.png
+ 
+         parts.path = $$PKGDATADIR
+         parts.files += parts

Added: head/cad/fritzing/files/pkg-install.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/cad/fritzing/files/pkg-install.in	Mon Feb  1 06:23:42 2016	(r407684)
@@ -0,0 +1,15 @@
+echo $2 for FRITZING
+
+case $2 in
+PRE-INSTALL)
+	if ! id fritzing  > /dev/null 2>&1
+	then
+		pw adduser fritzing
+	fi
+;;
+POST-INSTALL)
+	echo fritzing shared files owned by fritzing user
+	chown -R fritzing:fritzing %%PREFIX%%/share/fritzing
+	chmod -R g+w %%PREFIX%%/share/fritzing
+;;
+esac

Added: head/cad/fritzing/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/cad/fritzing/pkg-descr	Mon Feb  1 06:23:42 2016	(r407684)
@@ -0,0 +1,8 @@
+Fritzing is an Electronic Design Automation software with a low
+entry barrier, suited for the needs of designers and artists. It
+uses the metaphor of the breadboard, so that it is easy to transfer
+your hardware sketch to the software. From there it is possible to
+create PCB layouts for turning it into a robust PCB yourself or by
+help of a manufacturer.
+
+WWW: http://fritzing.org/

Added: head/cad/fritzing/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/cad/fritzing/pkg-plist	Mon Feb  1 06:23:42 2016	(r407684)
@@ -0,0 +1,5 @@
+bin/Fritzing
+man/man1/Fritzing.1.gz
+share/applications/fritzing.desktop
+share/icons/hicolor/64x64/apps/fritzing.png
+ at dir %%DATADIR%%/parts/core


More information about the svn-ports-all mailing list