pkgsrc-WIP-changes archive

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

Import lumina-0.8.7 as wip/lumina.



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Tue Dec 1 13:26:32 2015 +0100
Changeset:	5b6867e5e7eac02e6d3d3cb0d4e75501d1dcc669

Added Files:
	lumina/DESCR
	lumina/Makefile
	lumina/PLIST
	lumina/distinfo
	lumina/patches/patch-libLumina_LuminaOS-NetBSD.cpp
	lumina/patches/patch-libLumina_libLumina.pro

Log Message:
Import lumina-0.8.7 as wip/lumina.

The Lumina Desktop Environment is a lightweight system interface that is
designed for use on any Unix-like operating system. It takes a plugin-based
approach, allowing the entire interface to be assembled/arranged by each
individual user as desired, with a system-wide default layout which was setup
by the  system administrator. This allows every system (or user session) to be
designed to maximize the individual s productivity.

The Lumina desktop developers understand that the point of a computer system is
to run applications, so Lumina was designed to require as few system
dependencies/requirements as possible. This allows it to be used to revitalize
older systems or to allow the user to run applications that may need a higher
percentage of the system resources than were previously available with other
desktop environments.

All of this results in a very lightweight, customizable, and smooth desktop
experience with minimal system overhead.

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

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

diffstat:
 lumina/DESCR                                       |  16 ++
 lumina/Makefile                                    |  39 +++++
 lumina/PLIST                                       |   1 +
 lumina/distinfo                                    |   8 +
 lumina/patches/patch-libLumina_LuminaOS-NetBSD.cpp | 173 +++++++++++++++++++++
 lumina/patches/patch-libLumina_libLumina.pro       |  12 ++
 6 files changed, 249 insertions(+)

diffs:
diff --git a/lumina/DESCR b/lumina/DESCR
new file mode 100644
index 0000000..94a3393
--- /dev/null
+++ b/lumina/DESCR
@@ -0,0 +1,16 @@
+The Lumina Desktop Environment is a lightweight system interface that is
+designed for use on any Unix-like operating system. It takes a plugin-based
+approach, allowing the entire interface to be assembled/arranged by each
+individual user as desired, with a system-wide default layout which was setup
+by the  system administrator. This allows every system (or user session) to be
+designed to maximize the individual s productivity.
+
+The Lumina desktop developers understand that the point of a computer system is
+to run applications, so Lumina was designed to require as few system
+dependencies/requirements as possible. This allows it to be used to revitalize
+older systems or to allow the user to run applications that may need a higher
+percentage of the system resources than were previously available with other
+desktop environments. 
+
+All of this results in a very lightweight, customizable, and smooth desktop
+experience with minimal system overhead.
diff --git a/lumina/Makefile b/lumina/Makefile
new file mode 100644
index 0000000..34a1dc5
--- /dev/null
+++ b/lumina/Makefile
@@ -0,0 +1,39 @@
+# $NetBSD$
+
+DISTNAME=	lumina-0.8.7
+CATEGORIES=	x11
+MASTER_SITES=	${MASTER_SITE_GITHUB:=pcbsd/}
+GITHUB_TAG=	v${PKGVERSION_NOREV}-Release
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	http://lumina-desktop.org/
+COMMENT=	Lumina Desktop Environment
+LICENSE=	modified-bsd
+
+USE_LANGUAGES=	c c++
+
+SUBST_CLASSES+=		prefix
+SUBST_STAGE.prefix=	post-patch
+SUBST_MESSAGE.prefix=	Fixing prefix
+SUBST_FILES.prefix=	libLumina/LuminaXDG.cpp
+SUBST_FILES.prefix+=	lumina-config/mainUI.cpp
+SUBST_FILES.prefix=	lumina-desktop/SettingsMenu.cpp
+SUBST_SED.prefix=	-e 's,/usr/local,${PREFIX},'
+
+SUBST_CLASSES+=		sysconf
+SUBST_STAGE.sysconf=	post-patch
+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,'
+
+INSTALL_ENV=		INSTALL_ROOT=${DESTDIR}
+
+pre-build:
+	${RUN} cd ${WRKSRC} && ${QTDIR}/bin/qmake PREFIX=${PREFIX}
+
+.include "../../x11/qt5-qttools/buildlink3.mk"
+.include "../../x11/qt5-qtx11extras/buildlink3.mk"
+.include "../../x11/qt5-qtbase/buildlink3.mk"
+.include "../../x11/qt5-qtmultimedia/buildlink3.mk"
+.include "../../x11/qt5-qtdeclarative/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/lumina/PLIST b/lumina/PLIST
new file mode 100644
index 0000000..48d96a5
--- /dev/null
+++ b/lumina/PLIST
@@ -0,0 +1 @@
+@comment $NetBSD$
diff --git a/lumina/distinfo b/lumina/distinfo
new file mode 100644
index 0000000..6e4ff73
--- /dev/null
+++ b/lumina/distinfo
@@ -0,0 +1,8 @@
+$NetBSD$
+
+SHA1 (lumina-0.8.7.tar.gz) = 6da814dec7150cc3384d542f10835a7957150423
+RMD160 (lumina-0.8.7.tar.gz) = e74a8e84b7a5b25f6b0e2fdab0f96b476dc60681
+SHA512 (lumina-0.8.7.tar.gz) = edad5accbc1a33621145a3444aa56b7eb50226de96f200d3bdf2a8a0f8ecb58f466324658d6b889ecfbcc3f88f240d14ce945891dac54a31ef2609296deee375
+Size (lumina-0.8.7.tar.gz) = 35755064 bytes
+SHA1 (patch-libLumina_LuminaOS-NetBSD.cpp) = c8db0b69a7f11f0965e43c97d0c294c511d8d832
+SHA1 (patch-libLumina_libLumina.pro) = 503b146b56b542d686145642227061e27ab48354
diff --git a/lumina/patches/patch-libLumina_LuminaOS-NetBSD.cpp b/lumina/patches/patch-libLumina_LuminaOS-NetBSD.cpp
new file mode 100644
index 0000000..58eb1c2
--- /dev/null
+++ b/lumina/patches/patch-libLumina_LuminaOS-NetBSD.cpp
@@ -0,0 +1,173 @@
+$NetBSD$
+
+--- libLumina/LuminaOS-NetBSD.cpp.orig	2015-12-01 04:29:06.000000000 +0000
++++ libLumina/LuminaOS-NetBSD.cpp
+@@ -0,0 +1,168 @@
++//===========================================
++//  Lumina-DE source code
++//  Copyright (c) 2014, Ken Moore
++//  Available under the 3-clause BSD license
++//  See the LICENSE file for full details
++//===========================================
++#ifdef __NetBSD__
++#include "LuminaOS.h"
++#include <unistd.h>
++#include <stdio.h> // Needed for BUFSIZ
++
++QString LOS::OSName(){ return "NetBSD"; }
++
++//OS-specific prefix(s)
++QString LOS::AppPrefix(){ return "/usr/local/"; } //Prefix for applications
++QString LOS::SysPrefix(){ return "/usr/"; } //Prefix for system
++
++//OS-specific application shortcuts (*.desktop files)
++QString LOS::ControlPanelShortcut(){ return ""; } //system control panel
++QString LOS::AppStoreShortcut(){ return ""; } //graphical app/pkg manager
++QString LOS::QtConfigShortcut(){ return ""; } //qtconfig binary (NOT *.desktop file)
++	
++// ==== ExternalDevicePaths() ====
++QStringList LOS::ExternalDevicePaths(){
++    //Returns: QStringList[<type>::::<filesystem>::::<path>]
++      //Note: <type> = [USB, HDRIVE, DVD, SDCARD, UNKNOWN]
++	
++  //Not implemented yet
++  return QStringList();
++}
++
++//Read screen brightness information
++int LOS::ScreenBrightness(){
++  //Returns: Screen Brightness as a percentage (0-100, with -1 for errors)
++  return -1;  //not implemented yet
++}
++
++//Set screen brightness
++void LOS::setScreenBrightness(int percent){
++  //not implemented yet
++}
++
++//Read the current volume
++int LOS::audioVolume(){ 
++  //Returns: audio volume as a percentage (0-100, with -1 for errors)
++  return -1; //Not implemented yet
++}
++
++//Set the current volume
++void LOS::setAudioVolume(int percent){
++  //not implemented yet
++}
++
++//Change the current volume a set amount (+ or -)
++void LOS::changeAudioVolume(int percentdiff){
++  //not implemented yet
++}
++
++//Check if a graphical audio mixer is installed
++bool LOS::hasMixerUtility(){
++  return false; //not implemented yet
++}
++
++//Launch the graphical audio mixer utility
++void LOS::startMixerUtility(){
++  //not implemented yet
++}
++
++//Check for user system permission (shutdown/restart)
++bool LOS::userHasShutdownAccess(){
++  //User needs to be a part of the operator group to be able to run the shutdown command
++  QStringList groups = LUtils::getCmdOutput("id -Gn").join(" ").split(" ");
++  return groups.contains("operator");
++}
++
++//Check for whether the system is safe to power off (no updates being perfomed)
++bool LOS::systemPerformingUpdates(){
++  return false; //Not implemented yet
++}
++
++//System Shutdown
++void LOS::systemShutdown(){ //start poweroff sequence
++  QProcess::startDetached("shutdown -p now");
++}
++
++//System Restart
++void LOS::systemRestart(){ //start reboot sequence
++  QProcess::startDetached("shutdown -r now");
++}
++
++//Check for suspend support
++bool LOS::systemCanSuspend(){
++  return false;
++}
++
++//Put the system into the suspend state
++void LOS::systemSuspend(){
++
++}
++
++//Battery Availability
++bool LOS::hasBattery(){
++  return false; //not implemented yet
++}
++
++//Battery Charge Level
++int LOS::batteryCharge(){ //Returns: percent charge (0-100), anything outside that range is counted as an error
++  return -1;  //not implemented yet
++}
++
++//Battery Charging State
++bool LOS::batteryIsCharging(){
++  return false; //not implemented yet
++}
++
++//Battery Time Remaining
++int LOS::batterySecondsLeft(){ //Returns: estimated number of seconds remaining
++  return 0; //not implemented yet
++}
++
++//File Checksums
++QStringList LOS::Checksums(QStringList filepaths){ //Return: checksum of the input file
++  //on NetBSD md5(1) has the following layout
++  //$ md5 DESCR Makefile
++  //MD5 (DESCR) = 6aaa128cf0466792be6f6d15e4589dfb
++  //MD5 (Makefile) = 4787f3145bba2a3cc393cdd812c5d18b
++
++  QStringList info = LUtils::getCmdOutput("md5 \""+filepaths.join("\" \"")+"\"");
++  for(int i=0; i<info.length(); i++){
++    if( !info[i].contains(" = ") ){ info.removeAt(i); i--; }
++    else{
++      //Strip out the extra information
++      info[i] = info[i].section(" = ",1,1);
++    }
++  }
++  return info;
++}
++
++//file system capacity
++QString LOS::FileSystemCapacity(QString dir) { //Return: percentage capacity as give by the df command
++  // on NetBSD, df has the following layout:
++  // $ df /home
++  // Filesystem   512-blocks       Used      Avail %Cap Mounted on
++  // /dev/cgd0a     39711132   37140376     585200  98% /home
++
++  QStringList mountInfo = LUtils::getCmdOutput("df \"" + dir+"\"");
++  QString::SectionFlag skipEmpty = QString::SectionSkipEmpty;
++  //we take the 5th word on the 2 line
++  QString capacity = mountInfo[1].section(" ",4,4, skipEmpty);
++  return capacity;
++}
++
++QStringList LOS::CPUTemperatures(){ //Returns: List containing the temperature of any CPU's ("50C" for example)
++  return QStringList(); //not implemented yet
++}
++
++int LOS::CPUUsagePercent(){ //Returns: Overall percentage of the amount of CPU cycles in use (-1 for errors)
++  return -1; //not implemented yet
++}
++
++int LOS::MemoryUsagePercent(){
++  return -1; //not implemented yet
++}
++
++QStringList LOS::DiskUsage(){ //Returns: List of current read/write stats for each device
++  return QStringList(); //not implemented yet
++}
++#endif
diff --git a/lumina/patches/patch-libLumina_libLumina.pro b/lumina/patches/patch-libLumina_libLumina.pro
new file mode 100644
index 0000000..e72a621
--- /dev/null
+++ b/lumina/patches/patch-libLumina_libLumina.pro
@@ -0,0 +1,12 @@
+$NetBSD$
+
+--- libLumina/libLumina.pro.orig	2015-10-23 18:08:10.000000000 +0000
++++ libLumina/libLumina.pro
+@@ -36,6 +36,7 @@ SOURCES	+= LuminaXDG.cpp \
+ 	LuminaSingleApplication.cpp \
+ 	LuminaOS-FreeBSD.cpp \
+ 	LuminaOS-DragonFly.cpp \
++	LuminaOS-NetBSD.cpp \
+ 	LuminaOS-OpenBSD.cpp \
+         LuminaOS-kFreeBSD.cpp
+ #       new OS support can be added here


Home | Main Index | Thread Index | Old Index