From 42eca00ec9c7d737f5fe6c1910a5fa8b68a7e0e0 Mon Sep 17 00:00:00 2001 From: plunky Date: Sun, 29 Dec 2019 14:15:32 +0000 Subject: [PATCH] install icons as qcad.??? --- cad/qcad/Makefile | 19 +++++++++++++------ cad/qcad/PLIST | 12 ++++++------ 2 files changed, 19 insertions(+), 12 deletions(-) diff --git a/cad/qcad/Makefile b/cad/qcad/Makefile index ac0c8aea3a91..198676afec2c 100644 --- a/cad/qcad/Makefile +++ b/cad/qcad/Makefile @@ -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/Help/ShowReadme/ShowReadme.js 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 @@ do-install: ${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 --git a/cad/qcad/PLIST b/cad/qcad/PLIST index de04f1d4a14a..2ef682cf6b4d 100644 --- a/cad/qcad/PLIST +++ b/cad/qcad/PLIST @@ -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 @@ ${PLIST.glx}lib/qcad/xcbglintegrations/libqxcb-glx-integration.so 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