pkgsrc-WIP-changes archive

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

flnews-devel: Added desktop file and icons



Module Name:	pkgsrc-wip
Committed By:	Michael Baeuerle <michael.baeuerle%stz-e.de@localhost>
Pushed By:	micha
Date:		Thu Jan 16 18:38:34 2020 +0100
Changeset:	54d47eaf05867d8604c1ee35123f7a2500e52bdb

Modified Files:
	flnews-devel/Makefile
	flnews-devel/PLIST
Added Files:
	flnews-devel/files/48x48/flnews.png
	flnews-devel/files/64x64/flnews.png
	flnews-devel/files/flnews.desktop

Log Message:
flnews-devel: Added desktop file and icons

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=54d47eaf05867d8604c1ee35123f7a2500e52bdb

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 flnews-devel/Makefile               |  31 ++++++++++++++++++++++++++++++-
 flnews-devel/PLIST                  |   3 +++
 flnews-devel/files/48x48/flnews.png | Bin 0 -> 1819 bytes
 flnews-devel/files/64x64/flnews.png | Bin 0 -> 476 bytes
 flnews-devel/files/flnews.desktop   |  15 +++++++++++++++
 5 files changed, 48 insertions(+), 1 deletion(-)

diffs:
diff --git a/flnews-devel/Makefile b/flnews-devel/Makefile
index 0473e0a720..cdea804248 100644
--- a/flnews-devel/Makefile
+++ b/flnews-devel/Makefile
@@ -3,6 +3,7 @@
 FLNEWS_VERSION=	0.18pre1
 
 DISTNAME=	flnews-${FLNEWS_VERSION}
+PKGREVISION=	1
 CATEGORIES=	news
 MASTER_SITES=	http://micha.freeshell.org/flnews/src/
 MASTER_SITES+=	http://www.ybtra.de/flnews-mirror/src/
@@ -65,8 +66,29 @@ SUBST_SED.edit-config+=		-e 's,@DEP_MD@,\#,g'
 SUBST_SED.edit-config+=		-e 's,@DEP_COMP@,,g'
 .endif
 
+INSTALLATION_DIRS+=		share/applications
+INSTALLATION_DIRS+=		share/icons/hicolor/48x48/apps
+INSTALLATION_DIRS+=		share/icons/hicolor/64x64/apps
+
+pre-configure:
+	${MKDIR} ${WRKDIR}/desktop
+	${CP} ${FILESDIR}/flnews.desktop ${WRKDIR}/desktop
+	${MKDIR} ${WRKDIR}/desktop/48x48
+	${CP} ${FILESDIR}/48x48/flnews.png ${WRKDIR}/desktop/48x48
+	${MKDIR} ${WRKDIR}/desktop/64x64
+	${CP} ${FILESDIR}/64x64/flnews.png ${WRKDIR}/desktop/64x64
+
 do-configure:
-	cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} config
+	cd ${WRKSRC} && \
+		${SETENV} ${CONFIGURE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} config
+
+post-install:
+	${INSTALL_DATA} ${WRKDIR}/desktop/flnews.desktop \
+		${DESTDIR}${PREFIX}/share/applications/flnews.desktop
+	${INSTALL_DATA} ${WRKDIR}/desktop/48x48/flnews.png \
+		${DESTDIR}${PREFIX}/share/icons/hicolor/48x48/apps/flnews.png
+	${INSTALL_DATA} ${WRKDIR}/desktop/64x64/flnews.png \
+		${DESTDIR}${PREFIX}/share/icons/hicolor/64x64/apps/flnews.png
 
 .if ${OPSYS} == "SunOS" && ${PKGSRC_COMPILER:Msunpro}
 BUILD_DEPENDS+=			makedepend-[0-9]*:../../devel/makedepend
@@ -74,12 +96,19 @@ BUILD_DEPENDS+=			makedepend-[0-9]*:../../devel/makedepend
 
 BUILDLINK_API_DEPENDS.zlib+=	zlib>=1.2.3
 .include "../../devel/zlib/buildlink3.mk"
+.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
 # OpenSSL 1.1 API is required for signature algorithm negotiation
 # OpenSSL 1.1 API is required for TLSv1.2 FFDHE group check
 # At least OpenSSL 1.1.1 is required for TLSv1.3
 # OpenSSL 3 API is required for FFDHE group negotiation
 BUILDLINK_API_DEPENDS.openssl+=	openssl>=1.0.0
 .include "../../security/openssl/buildlink3.mk"
+# Quoted from comment:
+# | This Makefile fragment is intended to be included by packages that install
+# | desktop entries.
+# There is a desktop entry, but no MIME types are associated with this program.
+# Is this nevertheless required?
+.include "../../sysutils/desktop-file-utils/desktopdb.mk"
 # FLTK must be compiled with multithreading support
 # FLTK version 1.4 is supported (should be compiled with pango support)
 #.include "../../x11/fltk13/buildlink3.mk"
diff --git a/flnews-devel/PLIST b/flnews-devel/PLIST
index 542c879571..a893926913 100644
--- a/flnews-devel/PLIST
+++ b/flnews-devel/PLIST
@@ -2,4 +2,7 @@
 bin/flnews
 ${PLIST.nls}lib/flnews/nls/de_DE.cat
 man/man1/flnews.1
+share/applications/flnews.desktop
 share/flnews/license.txt
+share/icons/hicolor/48x48/apps/flnews.png
+share/icons/hicolor/64x64/apps/flnews.png
diff --git a/flnews-devel/files/48x48/flnews.png b/flnews-devel/files/48x48/flnews.png
new file mode 100644
index 0000000000..2be27158bc
Binary files /dev/null and b/flnews-devel/files/48x48/flnews.png differ
diff --git a/flnews-devel/files/64x64/flnews.png b/flnews-devel/files/64x64/flnews.png
new file mode 100644
index 0000000000..493fc3e188
Binary files /dev/null and b/flnews-devel/files/64x64/flnews.png differ
diff --git a/flnews-devel/files/flnews.desktop b/flnews-devel/files/flnews.desktop
new file mode 100644
index 0000000000..b89dce3a62
--- /dev/null
+++ b/flnews-devel/files/flnews.desktop
@@ -0,0 +1,15 @@
+[Desktop Entry]
+# Conformant to desktop-entry-spec-1.1 (spec says 1.0 what is likely an error)
+Version=1.1
+Type=Application
+Name=flnews
+GenericName=Newsreader
+Comment=A fast and lightweight USENET newsreader
+Exec=flnews
+Terminal=false
+DBusActivatable=false
+Keywords=Network;
+# Conformant to menu-spec-1.0.html
+Categories=Network;
+# Conformant to icon-theme-spec-0.11
+Icon=flnews


Home | Main Index | Thread Index | Old Index