diff options
author | makc <makc@FreeBSD.org> | 2013-12-11 02:42:46 +0800 |
---|---|---|
committer | makc <makc@FreeBSD.org> | 2013-12-11 02:42:46 +0800 |
commit | 67efdd653dbf94a2896dbceb09ad525ce43de235 (patch) | |
tree | 0b763f82eed3afec0b7836b435f23382f5624b7a /cad/librecad | |
parent | 37c2221c2b54a62dc61401b3426de592e9ee51f7 (diff) | |
download | freebsd-ports-gnome-67efdd653dbf94a2896dbceb09ad525ce43de235.tar.gz freebsd-ports-gnome-67efdd653dbf94a2896dbceb09ad525ce43de235.tar.zst freebsd-ports-gnome-67efdd653dbf94a2896dbceb09ad525ce43de235.zip |
- Update to 2.0.0rc3
- Remove NLS options and related patches for simplicity
- Add patch to fix build on 10 and head
Diffstat (limited to 'cad/librecad')
-rw-r--r-- | cad/librecad/Makefile | 43 | ||||
-rw-r--r-- | cad/librecad/distinfo | 4 | ||||
-rw-r--r-- | cad/librecad/files/patch-librecad.pro | 10 | ||||
-rw-r--r-- | cad/librecad/files/patch-librecad__src__lib__engine__rs_color.h | 10 | ||||
-rw-r--r-- | cad/librecad/files/patch-scripts__postprocess-unix.sh | 33 | ||||
-rw-r--r-- | cad/librecad/pkg-plist | 167 |
6 files changed, 144 insertions, 123 deletions
diff --git a/cad/librecad/Makefile b/cad/librecad/Makefile index 50a826dea526..a9b84653160f 100644 --- a/cad/librecad/Makefile +++ b/cad/librecad/Makefile @@ -1,60 +1,45 @@ # $FreeBSD$ PORTNAME= librecad -PORTVERSION= 1.0.3 +DISTVERSION= 2.0.0rc3 CATEGORIES= cad MASTER_SITES= GITHUB MAINTAINER= makc@FreeBSD.org COMMENT= 2D CAD system -BUILD_DEPENDS= ${LOCALBASE}/lib/libmuparser.a:${PORTSDIR}/math/muparser +BUILD_DEPENDS= ${LOCALBASE}/lib/libmuparser.a:${PORTSDIR}/math/muparser \ + ${LOCALBASE}/include/boost/version.hpp:${PORTSDIR}/devel/boost-libs -USE_QT4= help qt3support help-tools_build moc_build \ +USE_QT4= help qt3support help-tools_build linguist_build moc_build \ rcc_build uic_build uic3_build -USES= qmake +USES= compiler:c++11-lib desktop-file-utils pkgconfig qmake 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 - -.include <bsd.port.options.mk> - -.if ${PORT_OPTIONS:MNLS} -USE_QT4+= linguist_build -PLIST_SUB+= NLS="" -.else -PLIST_SUB+= NLS="@comment " -.endif +GH_TAGNAME= ${DISTVERSION} +GH_COMMIT= 358e3ae post-patch: ${REINPLACE_CMD} -e 's,/usr/share,${PREFIX}/share,' \ - ${WRKSRC}/src/lib/engine/rs_system.cpp + ${WRKSRC}/librecad/src/lib/engine/rs_settings.cpp \ + ${WRKSRC}/librecad/src/lib/engine/rs_system.cpp ${REINPLACE_CMD} -e \ '/^Icon/s,librecad,${PREFIX}/share/pixmaps/librecad.png,' \ ${WRKSRC}/desktop/librecad.desktop -post-build: -.if ${PORT_OPTIONS:MNLS} - cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \ - ${LRELEASE} -compress librecad.pro - ${MKDIR} ${WRKSRC}/unix/resources/qm - ${INSTALL_DATA} ${WRKSRC}/ts/*.qm ${WRKSRC}/unix/resources/qm -.endif - cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \ - ${SH} scripts/postprocess-unix.sh +pre-install: + ${CHMOD} +w ${WRKSRC}/unix/resources/plugins/*.so + ${STRIP_CMD} ${WRKSRC}/unix/resources/plugins/*.so do-install: ${INSTALL_PROGRAM} ${WRKSRC}/unix/librecad ${STAGEDIR}${PREFIX}/bin - cd ${WRKSRC}/unix/resources && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR} + (cd ${WRKSRC}/unix/resources && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}) ${INSTALL_DATA} ${WRKSRC}/desktop/librecad.desktop \ ${STAGEDIR}${PREFIX}/share/applications - ${INSTALL_DATA} ${WRKSRC}/res/main/librecad.png \ + ${INSTALL_DATA} ${WRKSRC}/librecad/res/main/librecad.png \ ${STAGEDIR}${PREFIX}/share/pixmaps .include <bsd.port.mk> diff --git a/cad/librecad/distinfo b/cad/librecad/distinfo index 349cde960537..5117e920dc6a 100644 --- a/cad/librecad/distinfo +++ b/cad/librecad/distinfo @@ -1,2 +1,2 @@ -SHA256 (librecad-1.0.3.tar.gz) = 51d286c1460d26773147f4c2682990aa187eb18dd9f41e6cc7586008960fbca0 -SIZE (librecad-1.0.3.tar.gz) = 4578144 +SHA256 (librecad-2.0.0rc3.tar.gz) = 6db3aad0c18970d7c8815bedb5a2a7afbc03f342b3267f74ec2b632f988cd4ff +SIZE (librecad-2.0.0rc3.tar.gz) = 15353899 diff --git a/cad/librecad/files/patch-librecad.pro b/cad/librecad/files/patch-librecad.pro deleted file mode 100644 index 9107145a15e6..000000000000 --- a/cad/librecad/files/patch-librecad.pro +++ /dev/null @@ -1,10 +0,0 @@ ---- ./librecad.pro.orig 2011-12-14 18:07:34.000000000 +0000 -+++ ./librecad.pro 2012-01-03 10:28:08.504074615 +0000 -@@ -45,7 +45,6 @@ - RC_FILE = res/main/librecad.icns - DESTDIR = unix - -- QMAKE_POST_LINK = scripts/postprocess-unix.sh - } - } - win32 { diff --git a/cad/librecad/files/patch-librecad__src__lib__engine__rs_color.h b/cad/librecad/files/patch-librecad__src__lib__engine__rs_color.h new file mode 100644 index 000000000000..3e3fe83a4471 --- /dev/null +++ b/cad/librecad/files/patch-librecad__src__lib__engine__rs_color.h @@ -0,0 +1,10 @@ +--- ./librecad/src/lib/engine/rs_color.h.orig 2013-11-13 10:16:38.000000000 +0000 ++++ ./librecad/src/lib/engine/rs_color.h 2013-12-10 17:20:29.235786970 +0000 +@@ -29,6 +29,7 @@ + #define RS_COLOR_H + + #include <QColor> ++#include <ostream> + + #include "rs_flags.h" + diff --git a/cad/librecad/files/patch-scripts__postprocess-unix.sh b/cad/librecad/files/patch-scripts__postprocess-unix.sh deleted file mode 100644 index dd1bb7275e8f..000000000000 --- a/cad/librecad/files/patch-scripts__postprocess-unix.sh +++ /dev/null @@ -1,33 +0,0 @@ ---- ./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 -- --# Go into translations directory --cd "${TSDIR}" --for tf in *.qm --do -- cp "${tf}" "${RESOURCEDIR}/qm/${tf}" --done -- diff --git a/cad/librecad/pkg-plist b/cad/librecad/pkg-plist index f3c19f39f88b..8debee61bc5e 100644 --- a/cad/librecad/pkg-plist +++ b/cad/librecad/pkg-plist @@ -2,6 +2,8 @@ bin/librecad share/applications/librecad.desktop %%DATADIR%%/doc/LibreCADdoc.qch %%DATADIR%%/doc/LibreCADdoc.qhc +%%DATADIR%%/fonts/OpenGostTypeA-Regular.lff +%%DATADIR%%/fonts/OpenGostTypeB-Regular.lff %%DATADIR%%/fonts/cursive.lff %%DATADIR%%/fonts/cyrillic_ii.lff %%DATADIR%%/fonts/gothgbt.lff @@ -13,7 +15,6 @@ share/applications/librecad.desktop %%DATADIR%%/fonts/greekp.lff %%DATADIR%%/fonts/greeks.lff %%DATADIR%%/fonts/iso.lff -%%DATADIR%%/fonts/iso8859-11.lff %%DATADIR%%/fonts/italicc.lff %%DATADIR%%/fonts/italiccs.lff %%DATADIR%%/fonts/italict.lff @@ -30,11 +31,16 @@ share/applications/librecad.desktop %%DATADIR%%/fonts/scripts.lff %%DATADIR%%/fonts/simplex.lff %%DATADIR%%/fonts/standard.lff +%%DATADIR%%/fonts/syastro.lff +%%DATADIR%%/fonts/symap.lff +%%DATADIR%%/fonts/symath.lff %%DATADIR%%/fonts/symbol.lff -%%DATADIR%%/fonts/symbol_astro.lff %%DATADIR%%/fonts/symbol_misc1.lff %%DATADIR%%/fonts/symbol_misc2.lff +%%DATADIR%%/fonts/symeteo.lff +%%DATADIR%%/fonts/symusic.lff %%DATADIR%%/fonts/unicode.lff +%%DATADIR%%/fonts/wqy-unicode.lff %%DATADIR%%/library/misc/a3.dxf %%DATADIR%%/library/misc/screw.dxf %%DATADIR%%/library/misc/t-part.dxf @@ -87,54 +93,117 @@ share/applications/librecad.desktop %%DATADIR%%/patterns/square.dxf %%DATADIR%%/patterns/triangle_a.dxf %%DATADIR%%/patterns/triangle_b.dxf -%%NLS%%%%DATADIR%%/qm/librecad_cs.qm -%%NLS%%%%DATADIR%%/qm/librecad_da.qm -%%NLS%%%%DATADIR%%/qm/librecad_de.qm -%%NLS%%%%DATADIR%%/qm/librecad_el.qm -%%NLS%%%%DATADIR%%/qm/librecad_en.qm -%%NLS%%%%DATADIR%%/qm/librecad_en_au.qm -%%NLS%%%%DATADIR%%/qm/librecad_es.qm -%%NLS%%%%DATADIR%%/qm/librecad_es_ar.qm -%%NLS%%%%DATADIR%%/qm/librecad_es_bo.qm -%%NLS%%%%DATADIR%%/qm/librecad_es_cl.qm -%%NLS%%%%DATADIR%%/qm/librecad_es_co.qm -%%NLS%%%%DATADIR%%/qm/librecad_es_cr.qm -%%NLS%%%%DATADIR%%/qm/librecad_es_do.qm -%%NLS%%%%DATADIR%%/qm/librecad_es_ec.qm -%%NLS%%%%DATADIR%%/qm/librecad_es_gt.qm -%%NLS%%%%DATADIR%%/qm/librecad_es_hn.qm -%%NLS%%%%DATADIR%%/qm/librecad_es_mx.qm -%%NLS%%%%DATADIR%%/qm/librecad_es_ni.qm -%%NLS%%%%DATADIR%%/qm/librecad_es_pa.qm -%%NLS%%%%DATADIR%%/qm/librecad_es_pe.qm -%%NLS%%%%DATADIR%%/qm/librecad_es_pr.qm -%%NLS%%%%DATADIR%%/qm/librecad_es_py.qm -%%NLS%%%%DATADIR%%/qm/librecad_es_sv.qm -%%NLS%%%%DATADIR%%/qm/librecad_es_us.qm -%%NLS%%%%DATADIR%%/qm/librecad_es_uy.qm -%%NLS%%%%DATADIR%%/qm/librecad_es_ve.qm -%%NLS%%%%DATADIR%%/qm/librecad_et.qm -%%NLS%%%%DATADIR%%/qm/librecad_fi.qm -%%NLS%%%%DATADIR%%/qm/librecad_fr.qm -%%NLS%%%%DATADIR%%/qm/librecad_hu.qm -%%NLS%%%%DATADIR%%/qm/librecad_id_ID.qm -%%NLS%%%%DATADIR%%/qm/librecad_it.qm -%%NLS%%%%DATADIR%%/qm/librecad_ja.qm -%%NLS%%%%DATADIR%%/qm/librecad_nl.qm -%%NLS%%%%DATADIR%%/qm/librecad_no.qm -%%NLS%%%%DATADIR%%/qm/librecad_pa.qm -%%NLS%%%%DATADIR%%/qm/librecad_pl.qm -%%NLS%%%%DATADIR%%/qm/librecad_pt.qm -%%NLS%%%%DATADIR%%/qm/librecad_ru.qm -%%NLS%%%%DATADIR%%/qm/librecad_sk.qm -%%NLS%%%%DATADIR%%/qm/librecad_sq_al.qm -%%NLS%%%%DATADIR%%/qm/librecad_sv.qm -%%NLS%%%%DATADIR%%/qm/librecad_tr.qm -%%NLS%%%%DATADIR%%/qm/librecad_uk.qm -%%NLS%%%%DATADIR%%/qm/librecad_zh_cn.qm -%%NLS%%%%DATADIR%%/qm/librecad_zh_tw.qm +%%DATADIR%%/plugins/libalign.so +%%DATADIR%%/plugins/libasciifile.so +%%DATADIR%%/plugins/libimportshp.so +%%DATADIR%%/plugins/liblist.so +%%DATADIR%%/plugins/libsameprop.so +%%DATADIR%%/plugins/libsample.so +%%DATADIR%%/qm/librecad_ca.qm +%%DATADIR%%/qm/librecad_cs.qm +%%DATADIR%%/qm/librecad_da.qm +%%DATADIR%%/qm/librecad_de.qm +%%DATADIR%%/qm/librecad_el.qm +%%DATADIR%%/qm/librecad_en.qm +%%DATADIR%%/qm/librecad_en_au.qm +%%DATADIR%%/qm/librecad_es.qm +%%DATADIR%%/qm/librecad_es_ar.qm +%%DATADIR%%/qm/librecad_es_bo.qm +%%DATADIR%%/qm/librecad_es_cl.qm +%%DATADIR%%/qm/librecad_es_co.qm +%%DATADIR%%/qm/librecad_es_cr.qm +%%DATADIR%%/qm/librecad_es_do.qm +%%DATADIR%%/qm/librecad_es_ec.qm +%%DATADIR%%/qm/librecad_es_gt.qm +%%DATADIR%%/qm/librecad_es_hn.qm +%%DATADIR%%/qm/librecad_es_mx.qm +%%DATADIR%%/qm/librecad_es_ni.qm +%%DATADIR%%/qm/librecad_es_pa.qm +%%DATADIR%%/qm/librecad_es_pe.qm +%%DATADIR%%/qm/librecad_es_pr.qm +%%DATADIR%%/qm/librecad_es_py.qm +%%DATADIR%%/qm/librecad_es_sv.qm +%%DATADIR%%/qm/librecad_es_us.qm +%%DATADIR%%/qm/librecad_es_uy.qm +%%DATADIR%%/qm/librecad_es_ve.qm +%%DATADIR%%/qm/librecad_et.qm +%%DATADIR%%/qm/librecad_fi.qm +%%DATADIR%%/qm/librecad_fr.qm +%%DATADIR%%/qm/librecad_hu.qm +%%DATADIR%%/qm/librecad_id_ID.qm +%%DATADIR%%/qm/librecad_it.qm +%%DATADIR%%/qm/librecad_ja.qm +%%DATADIR%%/qm/librecad_lv.qm +%%DATADIR%%/qm/librecad_nl.qm +%%DATADIR%%/qm/librecad_no.qm +%%DATADIR%%/qm/librecad_pa.qm +%%DATADIR%%/qm/librecad_pl.qm +%%DATADIR%%/qm/librecad_pt_br.qm +%%DATADIR%%/qm/librecad_pt_pt.qm +%%DATADIR%%/qm/librecad_ro_ro.qm +%%DATADIR%%/qm/librecad_ru.qm +%%DATADIR%%/qm/librecad_sk.qm +%%DATADIR%%/qm/librecad_sl.qm +%%DATADIR%%/qm/librecad_sq_al.qm +%%DATADIR%%/qm/librecad_sv.qm +%%DATADIR%%/qm/librecad_tr.qm +%%DATADIR%%/qm/librecad_uk.qm +%%DATADIR%%/qm/librecad_zh_cn.qm +%%DATADIR%%/qm/librecad_zh_tw.qm +%%DATADIR%%/qm/plugins_ca.qm +%%DATADIR%%/qm/plugins_cs.qm +%%DATADIR%%/qm/plugins_da.qm +%%DATADIR%%/qm/plugins_de.qm +%%DATADIR%%/qm/plugins_el.qm +%%DATADIR%%/qm/plugins_en.qm +%%DATADIR%%/qm/plugins_en_au.qm +%%DATADIR%%/qm/plugins_es.qm +%%DATADIR%%/qm/plugins_es_ar.qm +%%DATADIR%%/qm/plugins_es_bo.qm +%%DATADIR%%/qm/plugins_es_cl.qm +%%DATADIR%%/qm/plugins_es_co.qm +%%DATADIR%%/qm/plugins_es_cr.qm +%%DATADIR%%/qm/plugins_es_do.qm +%%DATADIR%%/qm/plugins_es_ec.qm +%%DATADIR%%/qm/plugins_es_gt.qm +%%DATADIR%%/qm/plugins_es_hn.qm +%%DATADIR%%/qm/plugins_es_mx.qm +%%DATADIR%%/qm/plugins_es_ni.qm +%%DATADIR%%/qm/plugins_es_pa.qm +%%DATADIR%%/qm/plugins_es_pe.qm +%%DATADIR%%/qm/plugins_es_pr.qm +%%DATADIR%%/qm/plugins_es_py.qm +%%DATADIR%%/qm/plugins_es_sv.qm +%%DATADIR%%/qm/plugins_es_us.qm +%%DATADIR%%/qm/plugins_es_uy.qm +%%DATADIR%%/qm/plugins_es_ve.qm +%%DATADIR%%/qm/plugins_et.qm +%%DATADIR%%/qm/plugins_fi.qm +%%DATADIR%%/qm/plugins_fr.qm +%%DATADIR%%/qm/plugins_hu.qm +%%DATADIR%%/qm/plugins_id_ID.qm +%%DATADIR%%/qm/plugins_it.qm +%%DATADIR%%/qm/plugins_ja.qm +%%DATADIR%%/qm/plugins_lv.qm +%%DATADIR%%/qm/plugins_nl.qm +%%DATADIR%%/qm/plugins_no.qm +%%DATADIR%%/qm/plugins_pa.qm +%%DATADIR%%/qm/plugins_pl.qm +%%DATADIR%%/qm/plugins_pt_br.qm +%%DATADIR%%/qm/plugins_pt_pt.qm +%%DATADIR%%/qm/plugins_ro_ro.qm +%%DATADIR%%/qm/plugins_ru.qm +%%DATADIR%%/qm/plugins_sk.qm +%%DATADIR%%/qm/plugins_sl.qm +%%DATADIR%%/qm/plugins_sq_al.qm +%%DATADIR%%/qm/plugins_sv.qm +%%DATADIR%%/qm/plugins_tr.qm +%%DATADIR%%/qm/plugins_uk.qm +%%DATADIR%%/qm/plugins_zh_cn.qm +%%DATADIR%%/qm/plugins_zh_tw.qm share/pixmaps/librecad.png -%%NLS%%@dirrm %%DATADIR%%/qm +@dirrm %%DATADIR%%/qm +@dirrm %%DATADIR%%/plugins @dirrm %%DATADIR%%/patterns @dirrm %%DATADIR%%/library/templates @dirrm %%DATADIR%%/library/misc |