pkgsrc-WIP-changes archive

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

lumina: Install configuration in an example directory



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Wed Dec 2 05:06:48 2015 +0100
Changeset:	fb27cbd122511e212139f88889b381dfa3cecf68

Modified Files:
	lumina/Makefile
	lumina/PLIST

Log Message:
lumina: Install configuration in an example directory

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

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

diffstat:
 lumina/Makefile | 15 +++++++++++++++
 lumina/PLIST    |  2 +-
 2 files changed, 16 insertions(+), 1 deletion(-)

diffs:
diff --git a/lumina/Makefile b/lumina/Makefile
index df34eb4..34504f5 100644
--- a/lumina/Makefile
+++ b/lumina/Makefile
@@ -14,6 +14,10 @@ USE_LANGUAGES=	c c++
 
 USE_LIBTOOL=	yes
 
+EGDIR=		${PREFIX}/share/examples/lumina
+
+CONF_FILES+=	${EGDIR}/ ${PKG_SYSCONFDIR}/
+
 DEPENDS+=	fluxbox-[0-9]*:../../wm/fluxbox
 DEPENDS+=	oxygen-icons-[0-9]*:../../graphics/oxygen-icons
 DEPENDS+=	xscreensaver-[0-9]*:../../x11/xscreensaver
@@ -34,11 +38,22 @@ SUBST_MESSAGE.sysconf=	Fixing system configuration dir
 SUBST_FILES.sysconf=	libLumina/LuminaUtils.cpp
 SUBST_SED.sysconf=	-e 's,/etc/luminaDesktop.conf,${PKG_SYSCONFDIR}/luminaDesktop.conf,'
 
+SUBST_CLASSES+=		egdir
+SUBST_STAGE.egdir=	post-patch
+SUBST_MESSAGE.egdir=	Install configuration to example dir
+SUBST_FILES.egdir=	lumina-desktop/lumina-desktop.pro
+SUBST_SED.egdir=	-e 's,\$\$PREFIX/etc/luminaDesktop.conf.dist,${EGDIR}/luminaDesktop.conf,'
+
 INSTALL_ENV=		INSTALL_ROOT=${DESTDIR}
 
+# The NO_I18N option results in regeneration of empty translation files
+# These files are available via lumina-i18n
 pre-build:
 	${RUN} cd ${WRKSRC} && ${QTDIR}/bin/qmake PREFIX=${PREFIX} CONFIG+="configure NO_I18N"
 
+pre-install:
+	${RUN} ${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
+
 .include "../../sysutils/desktop-file-utils/desktopdb.mk"
 .include "../../x11/qt5-qttools/buildlink3.mk"
 .include "../../x11/qt5-qtx11extras/buildlink3.mk"
diff --git a/lumina/PLIST b/lumina/PLIST
index 24747a8..178784b 100644
--- a/lumina/PLIST
+++ b/lumina/PLIST
@@ -8,7 +8,6 @@ bin/lumina-open
 bin/lumina-screenshot
 bin/lumina-search
 bin/lumina-xconfig
-etc/luminaDesktop.conf.dist
 include/LuminaOS.h
 include/LuminaSingleApplication.h
 include/LuminaThemes.h
@@ -39,6 +38,7 @@ share/applications/lumina-fm.desktop
 share/applications/lumina-info.desktop
 share/applications/lumina-screenshot.desktop
 share/applications/lumina-search.desktop
+share/examples/lumina/luminaDesktop.conf
 share/pixmaps/Insight-FileManager.png
 share/pixmaps/Lumina-DE.png
 share/wallpapers/Lumina-DE/Lumina_Wispy_gold.jpg


Home | Main Index | Thread Index | Old Index