aboutsummaryrefslogtreecommitdiff
path: root/cad
diff options
context:
space:
mode:
authorMichael Reifenberger <mr@FreeBSD.org>2005-11-23 16:41:35 +0000
committerMichael Reifenberger <mr@FreeBSD.org>2005-11-23 16:41:35 +0000
commita1cc809d1a7a7a879cfbbc913f194dbecad4b17f (patch)
tree27c03e361483b2ea535347bd35ca42e653bd4c03 /cad
parentfd008a385f2ead8ada60ba72dfcb805270ebc353 (diff)
downloadports-a1cc809d1a7a7a879cfbbc913f194dbecad4b17f.tar.gz
ports-a1cc809d1a7a7a879cfbbc913f194dbecad4b17f.zip
Notes
Diffstat (limited to 'cad')
-rw-r--r--cad/qcad/Makefile45
-rw-r--r--cad/qcad/distinfo5
-rw-r--r--cad/qcad/files/patch-aa21
3 files changed, 38 insertions, 33 deletions
diff --git a/cad/qcad/Makefile b/cad/qcad/Makefile
index e6feac21f925..bd095ba142e6 100644
--- a/cad/qcad/Makefile
+++ b/cad/qcad/Makefile
@@ -6,12 +6,12 @@
#
PORTNAME= qcad
-PORTVERSION= 2.0.4.0.1
-PORTREVISION= 1
+PORTVERSION= 2.0.5.0.1
+#PORTREVISION= 1
CATEGORIES= cad
MASTER_SITES= http://www.ribbonsoft.com/archives/qcad/
-DISTNAME= ${PORTNAME}-${PORTVERSION:S/.1$/-1/}.src
+DISTNAME= ${PORTNAME}-${PORTVERSION:S/.1$/-1/}-community.src
MAINTAINER= mr@FreeBSD.org
COMMENT= Professional CAD system
@@ -19,7 +19,7 @@ COMMENT= Professional CAD system
BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash2 \
qmake:${PORTSDIR}/devel/qmake
-WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/.1$/-1/}.src
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/.1$/-1/}-community.src
QTDIR?= ${X11BASE}
@@ -44,35 +44,40 @@ post-patch:
.endif
do-build:
- cd ${WRKSRC}/scripts && ${SETENV} ${MAKE_ENV} bash ./build_qcad.sh
+ cd ${WRKSRC}/scripts && ${SETENV} ${MAKE_ENV} bash ./build_qcad.sh notrans
pre-install:
@${ECHO_CMD} bin/qcad > ${PLIST}
- @${FIND} ${WRKSRC}/qcad/examples/ -type f | \
- ${SED} -e "s:^${WRKSRC}/:%%PORTDOCS%%share/:g" >> ${PLIST}
- @${FIND} ${WRKSRC}/qcad/fonts/ -type f | \
+.for dir in data fonts library patterns qm scripts
+ @${FIND} ${WRKSRC}/qcad/${dir} -type f | \
${SED} -e "s:^${WRKSRC}/:share/:g" >> ${PLIST}
- @${FIND} ${WRKSRC}/qcad/patterns/ -type f | \
- ${SED} -e "s:^${WRKSRC}/:share/:g" >> ${PLIST}
- @${FIND} ${WRKSRC}/qcad/qm/ -type f | \
- ${SED} -e "s:^${WRKSRC}/:share/:g" >> ${PLIST}
- @${ECHO_CMD} '%%PORTDOCS%%@dirrm share/qcad/examples' >> ${PLIST}
- @${ECHO_CMD} '@dirrm share/qcad/fonts' >> ${PLIST}
- @${ECHO_CMD} '@dirrm share/qcad/patterns' >> ${PLIST}
- @${ECHO_CMD} '@dirrm share/qcad/qm' >> ${PLIST}
+.endfor
+ @${FIND} ${WRKSRC}/qcad/doc -type f | \
+ ${SED} -e "s:^${WRKSRC}/qcad/doc/:%%PORTDOCS%%share/doc/qcad/:g" >> \
+ ${PLIST}
+ @${FIND} -d ${WRKSRC}/qcad/doc -type d | \
+ ${SED} -e "s:^${WRKSRC}/qcad/doc:%%PORTDOCS%%@dirrm share/doc/qcad:g" \
+ >> ${PLIST}
+.for dir in scripts qm patterns library fonts data
+ @${FIND} -d ${WRKSRC}/qcad/${dir} -type d | \
+ ${SED} -e "s:^${WRKSRC}/qcad/${dir}:@dirrm share/qcad/${dir}:g" >> \
+ ${PLIST}
+.endfor
@${ECHO_CMD} '@dirrm share/qcad' >> ${PLIST}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/qcad/qcad ${PREFIX}/bin/qcad
@${MKDIR} ${DATADIR}
-.for dir in fonts patterns qm
+.for dir in data fonts library patterns qm scripts
${TAR} -C ${WRKSRC}/qcad --exclude CVS -cf - ${dir} | \
${TAR} -C ${DATADIR} --unlink -xf -
.endfor
.if !defined(NOPORTDOCS)
-.for dir in examples
- ${TAR} -C ${WRKSRC}/qcad --exclude CVS -cf - ${dir} | \
- ${TAR} -C ${DATADIR} --unlink -xf -
+ @${ECHO_CMD} ${DOCSDIR}
+ @${MKDIR} ${DOCSDIR}
+.for dir in doc
+ ${TAR} -C ${WRKSRC}/qcad/${dir} --exclude CVS -cf - . | \
+ ${TAR} -C ${DOCSDIR} --unlink -xf -
.endfor
.endif
diff --git a/cad/qcad/distinfo b/cad/qcad/distinfo
index 8d823ab02f13..440e817fc16c 100644
--- a/cad/qcad/distinfo
+++ b/cad/qcad/distinfo
@@ -1,2 +1,3 @@
-MD5 (qcad-2.0.4.0-1.src.tar.gz) = d99ae2855029af21f544e302a60d6840
-SIZE (qcad-2.0.4.0-1.src.tar.gz) = 3169984
+MD5 (qcad-2.0.5.0-1-community.src.tar.gz) = 96b6a56027782aec953c9c4e64c5998c
+SHA256 (qcad-2.0.5.0-1-community.src.tar.gz) = 83327a9598c0ff042025601f5b4cd0582cde541297f3071b01cc0527ffe1511d
+SIZE (qcad-2.0.5.0-1-community.src.tar.gz) = 4470033
diff --git a/cad/qcad/files/patch-aa b/cad/qcad/files/patch-aa
index 7850ae298cf5..77d55d733114 100644
--- a/cad/qcad/files/patch-aa
+++ b/cad/qcad/files/patch-aa
@@ -1,11 +1,10 @@
---- scripts/build_qcad.sh.orig Sun Oct 19 02:20:04 2003
-+++ scripts/build_qcad.sh Sun Oct 19 02:19:32 2003
-@@ -11,6 +11,6 @@
- # suse: Qt is usually located in /usr/lib/qt3
- #
--export MAKE=make
--#export MAKE=gmake
-+#export MAKE=make
-+#export MAKE=gmake
- #export QTDIR=/usr/share/qt3
- #export PATH=$PATH:$QTDIR/bin
+--- mkspecs/defs.pro.orig Tue Nov 22 17:16:04 2005
++++ mkspecs/defs.pro Tue Nov 22 17:16:14 2005
+@@ -1,5 +1,5 @@
+ # $Id: defs.pro 606 2004-12-25 03:08:40Z andrew $
+-QMAKE_CXXFLAGS_DEBUG += -pedantic
+-QMAKE_CXXFLAGS += -pedantic
++#QMAKE_CXXFLAGS_DEBUG += -pedantic
++#QMAKE_CXXFLAGS += -pedantic
+
+ win32 {