diff options
Diffstat (limited to 'cad/librecad')
-rw-r--r-- | cad/librecad/Makefile | 21 | ||||
-rw-r--r-- | cad/librecad/distinfo | 4 | ||||
-rw-r--r-- | cad/librecad/files/patch-scripts__postprocess-unix.sh | 41 |
3 files changed, 42 insertions, 24 deletions
diff --git a/cad/librecad/Makefile b/cad/librecad/Makefile index a1bfc6f99744..4abcce28871b 100644 --- a/cad/librecad/Makefile +++ b/cad/librecad/Makefile @@ -1,18 +1,25 @@ # $FreeBSD$ PORTNAME= librecad -PORTVERSION= 1.0.0 -PORTREVISION= 1 +PORTVERSION= 1.0.3 CATEGORIES= cad -MASTER_SITES= LOCAL/makc +MASTER_SITES= GITHUB MAINTAINER= makc@FreeBSD.org COMMENT= 2D CAD system -USE_XZ= yes +BUILD_DEPENDS= ${LOCALBASE}/lib/libmuparser.a:${PORTSDIR}/math/muparser + USE_QT4= help qt3support help-tools_build moc_build qmake_build \ rcc_build uic_build uic3_build MAKE_JOBS_SAFE= yes +MAKE_ENV= XDG_CONFIG_HOME=/dev/null + +USE_GITHUB= yes +GH_ACCOUNT= LibreCAD +GH_PROJECT= LibreCAD +GH_TAGNAME= v${PORTVERSION} +GH_COMMIT= c1f2eb6 OPTIONS_DEFINE= NLS @@ -37,11 +44,13 @@ do-configure: post-build: .if ${PORT_OPTIONS:MNLS} - @(cd ${WRKSRC} && ${LOCALBASE}/bin/lrelease-qt4 -compress librecad.pro) + cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \ + ${LOCALBASE}/bin/lrelease-qt4 -compress librecad.pro ${MKDIR} ${WRKSRC}/unix/resources/qm ${INSTALL_DATA} ${WRKSRC}/ts/*.qm ${WRKSRC}/unix/resources/qm .endif - cd ${WRKSRC} && ${SH} scripts/postprocess-unix.sh + cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \ + ${SH} scripts/postprocess-unix.sh do-install: ${MKDIR} ${PREFIX}/bin && \ diff --git a/cad/librecad/distinfo b/cad/librecad/distinfo index 179f37582054..349cde960537 100644 --- a/cad/librecad/distinfo +++ b/cad/librecad/distinfo @@ -1,2 +1,2 @@ -SHA256 (librecad-1.0.0.tar.xz) = 225eaee33691117cc0ade50bd8d7687aae56c9ec96af413e6462661e2232abe9 -SIZE (librecad-1.0.0.tar.xz) = 2851736 +SHA256 (librecad-1.0.3.tar.gz) = 51d286c1460d26773147f4c2682990aa187eb18dd9f41e6cc7586008960fbca0 +SIZE (librecad-1.0.3.tar.gz) = 4578144 diff --git a/cad/librecad/files/patch-scripts__postprocess-unix.sh b/cad/librecad/files/patch-scripts__postprocess-unix.sh index 7673dfede9ae..dd1bb7275e8f 100644 --- a/cad/librecad/files/patch-scripts__postprocess-unix.sh +++ b/cad/librecad/files/patch-scripts__postprocess-unix.sh @@ -1,24 +1,33 @@ ---- ./scripts/postprocess-unix.sh.orig 2011-12-14 18:07:34.000000000 +0000 -+++ ./scripts/postprocess-unix.sh 2012-01-03 10:28:08.510074137 +0000 -@@ -18,19 +18,9 @@ - cp support/patterns/*.dxf $RESOURCEDIR/patterns - #cp support/fonts/*.cxf $RESOURCEDIR/fonts - cp support/fonts/*.lff* $RESOURCEDIR/fonts --#cp support/doc/*.qhc $RESOURCEDIR/doc --#cp support/doc/*.qch $RESOURCEDIR/doc -+cp support/doc/*.qhc $RESOURCEDIR/doc -+cp support/doc/*.qch $RESOURCEDIR/doc - find support/library -type d -not -path "*.svn*" | sed s/support// | xargs -IFILES mkdir $RESOURCEDIR/FILES - find support/library -type f -iname *.dxf -not -path "*.svn*" | sed s/support// | xargs -IFILES cp support/FILES $RESOURCEDIR/FILES +--- ./scripts/postprocess-unix.sh.orig 2012-12-30 05:13:26.000000000 +0000 ++++ ./scripts/postprocess-unix.sh 2013-07-19 19:52:16.249098376 +0000 +@@ -6,7 +6,7 @@ + DOCDIR="${THISDIR}/support/doc" + + # Generate Help Files +-cd "{$DOCDIR}" ++cd "${DOCDIR}" + qcollectiongenerator LibreCADdoc.qhcp + + cd "${THISDIR}" +@@ -18,19 +18,8 @@ + cp support/patterns/*.dxf "${RESOURCEDIR}"/patterns + #cp support/fonts/*.cxf "${RESOURCEDIR}"/fonts + cp support/fonts/*.lff* "${RESOURCEDIR}"/fonts +-#cp support/doc/*.qhc "${RESOURCEDIR}"/doc +-#cp support/doc/*.qch "${RESOURCEDIR}"/doc ++cp support/doc/*.qhc "${RESOURCEDIR}"/doc ++cp support/doc/*.qch "${RESOURCEDIR}"/doc + find support/library -type d | sed s/support// | xargs -IFILES mkdir "${RESOURCEDIR}"/FILES + find support/library -type f -iname *.dxf | sed s/support// | xargs -IFILES cp support/FILES "${RESOURCEDIR}"/FILES -# Generate translations -lrelease librecad.pro --mkdir -p $RESOURCEDIR/qm +-mkdir -p "${RESOURCEDIR}"/qm - -# Go into translations directory --cd "$TSDIR" +-cd "${TSDIR}" -for tf in *.qm -do -- cp $tf $RESOURCEDIR/qm/$tf +- cp "${tf}" "${RESOURCEDIR}/qm/${tf}" -done - +- |