pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/cad/qcad install icons as qcad.???



details:   https://anonhg.NetBSD.org/pkgsrc/rev/50b44a1fafd8
branches:  trunk
changeset: 406670:50b44a1fafd8
user:      plunky <plunky%pkgsrc.org@localhost>
date:      Sun Dec 29 14:15:32 2019 +0000

description:
install icons as qcad.???

diffstat:

 cad/qcad/Makefile |  19 +++++++++++++------
 cad/qcad/PLIST    |  12 ++++++------
 2 files changed, 19 insertions(+), 12 deletions(-)

diffs (73 lines):

diff -r 4a8b82f76dd2 -r 50b44a1fafd8 cad/qcad/Makefile
--- a/cad/qcad/Makefile Sun Dec 29 12:49:34 2019 +0000
+++ b/cad/qcad/Makefile Sun Dec 29 14:15:32 2019 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.81 2019/12/29 12:44:15 plunky Exp $
+# $NetBSD: Makefile,v 1.82 2019/12/29 14:15:32 plunky Exp $
 #
 
 DISTNAME=              qcad-3.24.0.1
+PKGREVISION=           1
 CATEGORIES=            cad
 MASTER_SITES=          ${MASTER_SITE_GITHUB:=qcad/}
 EXTRACT_USING=         bsdtar
@@ -26,6 +27,12 @@
 SUBST_FILES.paths+=    scripts/Widgets/LibraryBrowser/LibraryBrowser.js
 SUBST_VARS.paths=      PREFIX
 
+SUBST_CLASSES+=                icon
+SUBST_STAGE.icon=      pre-configure
+SUBST_MESSAGE.icon=    Fix icon name.
+SUBST_FILES.icon=      qcad.desktop
+SUBST_SED.icon=                -e s,qcad_icon,qcad,g
+
 .include "../../mk/bsd.prefs.mk"
 PLIST_VARS+=   glx egl
 .if ${OPSYS} != "Darwin"
@@ -56,15 +63,15 @@
        ${INSTALL_DATA} ${WRKSRC}/qcad.desktop \
            ${DESTDIR}${PREFIX}/share/applications
        ${INSTALL_DATA} ${WRKSRC}/support/logo/logo_512.svg \
-           ${DESTDIR}${PREFIX}/share/icons/hicolor/scalable/apps/qcad_icon.svg
+           ${DESTDIR}${PREFIX}/share/icons/hicolor/scalable/apps/qcad.svg
        ${INSTALL_DATA} ${WRKSRC}/support/logo/logo_512.svg \
-           ${DESTDIR}${PREFIX}/share/icons/hicolor/512x512/apps/qcad_icon.svg
+           ${DESTDIR}${PREFIX}/share/icons/hicolor/512x512/apps/qcad.svg
        ${INSTALL_DATA} ${WRKSRC}/support/logo/logo_512.png \
-           ${DESTDIR}${PREFIX}/share/icons/hicolor/512x512/apps/qcad_icon.png
+           ${DESTDIR}${PREFIX}/share/icons/hicolor/512x512/apps/qcad.png
        ${INSTALL_DATA} ${WRKSRC}/scripts/qcad_icon.png \
-           ${DESTDIR}${PREFIX}/share/icons/hicolor/256x256/apps/qcad_icon.png
+           ${DESTDIR}${PREFIX}/share/icons/hicolor/256x256/apps/qcad.png
        ${INSTALL_DATA} ${WRKSRC}/support/doc/api/qcad_icon.png \
-           ${DESTDIR}${PREFIX}/share/icons/hicolor/64x64/apps/qcad_icon.png
+           ${DESTDIR}${PREFIX}/share/icons/hicolor/64x64/apps/qcad.png
        ${INSTALL_LIB} ${WRKSRC}/src/3rdparty/qt-labs-qtscriptgenerator-*/qtbindings/qtscript_*/libqtscript_*.so* \
            ${DESTDIR}${PREFIX}/lib/qcad/plugins/script
        ${INSTALL_MAN} ${WRKSRC}/qcad.1 \
diff -r 4a8b82f76dd2 -r 50b44a1fafd8 cad/qcad/PLIST
--- a/cad/qcad/PLIST    Sun Dec 29 12:49:34 2019 +0000
+++ b/cad/qcad/PLIST    Sun Dec 29 14:15:32 2019 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.16 2019/12/29 12:44:15 plunky Exp $
+@comment $NetBSD: PLIST,v 1.17 2019/12/29 14:15:32 plunky Exp $
 bin/qcad
 lib/libdxflib.so
 lib/libopennurbs.so
@@ -10547,11 +10547,11 @@
 lib/qcad/xcbglintegrations/readme.txt
 man/man1/qcad.1
 share/applications/qcad.desktop
-share/icons/hicolor/256x256/apps/qcad_icon.png
-share/icons/hicolor/512x512/apps/qcad_icon.png
-share/icons/hicolor/512x512/apps/qcad_icon.svg
-share/icons/hicolor/64x64/apps/qcad_icon.png
-share/icons/hicolor/scalable/apps/qcad_icon.svg
+share/icons/hicolor/256x256/apps/qcad.png
+share/icons/hicolor/512x512/apps/qcad.png
+share/icons/hicolor/512x512/apps/qcad.svg
+share/icons/hicolor/64x64/apps/qcad.png
+share/icons/hicolor/scalable/apps/qcad.svg
 share/qcad/examples/calibration.dxf
 share/qcad/examples/colors.dxf
 share/qcad/examples/entities.dxf



Home | Main Index | Thread Index | Old Index