pkgsrc-WIP-changes archive

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

gambas3: Install xdg resources



Module Name:	pkgsrc-wip
Committed By:	bgermann <bastiangermann%fishpost.de@localhost>
Pushed By:	bgermann
Date:		Mon Jan 21 21:47:22 2019 +0100
Changeset:	e93244b185032d14adca5da9167d0904f11303e2

Modified Files:
	gambas3-ide/Makefile
	gambas3/Makefile.common

Log Message:
gambas3: Install xdg resources

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

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

diffstat:
 gambas3-ide/Makefile    | 5 +++++
 gambas3/Makefile.common | 2 ++
 2 files changed, 7 insertions(+)

diffs:
diff --git a/gambas3-ide/Makefile b/gambas3-ide/Makefile
index 7ea0553132..178a60d99c 100644
--- a/gambas3-ide/Makefile
+++ b/gambas3-ide/Makefile
@@ -17,6 +17,11 @@ DEPENDS+=	gtar-base-1.*:../../archivers/gtar-base
 
 CHECK_FILES_SKIP+=	${PREFIX}/bin/gb.*
 
+post-install:
+	cd ${WRKSRC}/app; \
+	xdg-icon-resource install --novendor --size 48 desktop/gambas3.png; \
+	xdg-desktop-menu  install --novendor desktop/gambas3.desktop
+
 .include "options.mk"
 .include "../../archivers/xz/buildlink3.mk"
 .include "../../devel/gettext-tools/buildlink3.mk"
diff --git a/gambas3/Makefile.common b/gambas3/Makefile.common
index 878cd85f1e..6798b67775 100644
--- a/gambas3/Makefile.common
+++ b/gambas3/Makefile.common
@@ -120,6 +120,8 @@ CONFIGURE_DIRS!=	for d in ${BUILD_DIRS}; do echo $$d | cut -d/ -f1; done
 .if "${BUILD_DIRS}" != "main/gbc"
 BUILD_DEPENDS+=		gambas3-devel-${GB_VERSION}:../../wip/gambas3-devel
 BUILD_DEPENDS+=		xdg-utils-1.*:../../misc/xdg-utils
+.export XDG_DATA_HOME	${DESTDIR}${PREFIX}/share
+.export XDG_UTILS_INSTALL_MODE user
 
 .  for comp in ${GB_DEPENDS}
 DEPENDS+=		${comp}-${GB_VERSION}:../../wip/${comp}


Home | Main Index | Thread Index | Old Index