Index: head/x11-wm/lxsession/Makefile =================================================================== --- head/x11-wm/lxsession/Makefile (revision 432389) +++ head/x11-wm/lxsession/Makefile (revision 432390) @@ -1,39 +1,60 @@ # Created by: chinsan # $FreeBSD$ PORTNAME= lxsession -PORTVERSION= 0.4.6.1 -PORTREVISION= 3 +PORTVERSION= 0.5.3 CATEGORIES= x11-wm -MASTER_SITES= SF/lxde/LXSession%20%28session%20manager%29/LXSession%20${PORTVERSION}/ +MASTER_SITES= SF/lxde/LXSession%20%28session%20manager%29/LXSession%200.5.x/ MAINTAINER= ports@FreeBSD.org COMMENT= LXDE Session Manager LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING BUILD_DEPENDS= valac:lang/vala -LIB_DEPENDS= libhal.so:sysutils/hal \ - libgee-0.8.so:devel/libgee \ - libdbus-glib-1.so:devel/dbus-glib +LIB_DEPENDS= libdbus-glib-1.so:devel/dbus-glib \ + libfontconfig.so:x11-fonts/fontconfig \ + libfreetype.so:print/freetype2 \ + libunique-1.0.so:x11-toolkits/unique \ + libpolkit-agent-1.so:sysutils/polkit \ + libck-connector.so:sysutils/consolekit -USES= gmake iconv localbase pkgconfig -USE_GNOME= gtk20 intlhack libxslt +USES= gmake localbase pkgconfig tar:xz +USE_GNOME= glib20 gtk20 intltool cairo gdkpixbuf2 libxslt GNU_CONFIGURE= yes +USE_XORG= x11 USE_LDCONFIG= yes +INSTALL_TARGET= install-strip -OPTIONS_DEFINE= NLS +SUB_FILES= pkg-message + +CONFIGURE_ARGS= --enable-buildin-clipboard \ + --enable-buildin-polkit + +OPTIONS_DEFINE= NLS UPOWER OPTIONS_SUB= yes NLS_USES= gettext NLS_USES_OFF= gettext-tools +UPOWER_LIB_DEPENDS= libupower-glib.so:sysutils/upower +UPOWER_DESC= Suspend/Hibernate support -# Wrong versioning upstream -PORTSCOUT= skipv:0.4.9.2 +post-patch: + ${FIND} ${WRKSRC} -type f | ${XARGS} \ + ${REINPLACE_CMD} -e 's|/etc/xdg|${PREFIX}/etc/xdg|g ;\ + s|%%PREFIX%%|${PREFIX}| ;\ + s|/usr/bin/pkexec|${PREFIX}/bin/pkexec|g ;\ + s|:/usr/share:/usr/share/gdm||g ;\ + s|:/var/lib/menu-xdg||g ;\ + s|/usr/share|${PREFIX}/share|g ;\ + s|/usr/lib|${PREFIX}/lib|g ;\ + s|%%QT4_LIBDIR%%|${PREFIX}/lib/qt4| ;\ + s|%%QT5_LIBDIR%%|${PREFIX}/lib/qt5| ;\ + s|Clearlooks|Adwaita|' post-patch-NLS-off: @${REINPLACE_CMD} -e 's|po man|man|' \ ${WRKSRC}/Makefile.in .include Index: head/x11-wm/lxsession/distinfo =================================================================== --- head/x11-wm/lxsession/distinfo (revision 432389) +++ head/x11-wm/lxsession/distinfo (revision 432390) @@ -1,2 +1,3 @@ -SHA256 (lxsession-0.4.6.1.tar.gz) = bd6a7ef3c0ba4b9eedf3c58624dbce8bbbba3b179abbc552bf10c2830eec3ee1 -SIZE (lxsession-0.4.6.1.tar.gz) = 407100 +TIMESTAMP = 1482592330 +SHA256 (lxsession-0.5.3.tar.xz) = 90bf42a45421f45f2c745d60f2c730176e1472642451c06c2ab07dcebdaf1fa8 +SIZE (lxsession-0.5.3.tar.xz) = 407600 Index: head/x11-wm/lxsession/files/patch-lxsession-default-apps_main.c =================================================================== --- head/x11-wm/lxsession/files/patch-lxsession-default-apps_main.c (nonexistent) +++ head/x11-wm/lxsession/files/patch-lxsession-default-apps_main.c (revision 432390) @@ -0,0 +1,11 @@ +--- lxsession-default-apps/main.c.orig 2016-12-10 10:31:48 UTC ++++ lxsession-default-apps/main.c +@@ -1842,7 +1842,7 @@ LDefaultAppsMainWindows* ldefault_apps_m + gchar* _tmp14_ = NULL; + GtkBuilder* _tmp15_ = NULL; + const gchar* _tmp16_ = NULL; +- _tmp14_ = g_build_filename ("/usr", "share", "lxsession", "ui", "lxsession-default-apps.ui", NULL); ++ _tmp14_ = g_build_filename ("%%PREFIX%%", "share", "lxsession", "ui", "lxsession-default-apps.ui", NULL); + _g_free0 (builder_file_path); + builder_file_path = _tmp14_; + _tmp15_ = builder; Property changes on: head/x11-wm/lxsession/files/patch-lxsession-default-apps_main.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/x11-wm/lxsession/files/patch-lxsession-default-apps_main.vala =================================================================== --- head/x11-wm/lxsession/files/patch-lxsession-default-apps_main.vala (nonexistent) +++ head/x11-wm/lxsession/files/patch-lxsession-default-apps_main.vala (revision 432390) @@ -0,0 +1,11 @@ +--- lxsession-default-apps/main.vala.orig 2016-12-10 10:31:17 UTC ++++ lxsession-default-apps/main.vala +@@ -125,7 +125,7 @@ namespace LDefaultApps + else + { + /* TODO Make it smart with prefix */ +- builder_file_path = Path.build_filename("/usr","share","lxsession","ui","lxsession-default-apps.ui"); ++ builder_file_path = Path.build_filename("%%PREFIX%%","share","lxsession","ui","lxsession-default-apps.ui"); + builder.add_from_file (builder_file_path); + } + } Property changes on: head/x11-wm/lxsession/files/patch-lxsession-default-apps_main.vala ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/x11-wm/lxsession/files/patch-lxsession_environement.c =================================================================== --- head/x11-wm/lxsession/files/patch-lxsession_environement.c (nonexistent) +++ head/x11-wm/lxsession/files/patch-lxsession_environement.c (revision 432390) @@ -0,0 +1,11 @@ +--- lxsession/environement.c.orig 2016-12-10 01:54:04 UTC ++++ lxsession/environement.c +@@ -963,7 +963,7 @@ void lxsession_lxsession_env_set_misc (L + gchar* _tmp31_ = NULL; + gchar* _tmp32_ = NULL; + _tmp30_ = qt_plugin; +- _tmp31_ = g_strconcat (_tmp30_, ":/usr/lib64/kde4/plugins:/usr/lib/kde4/plugins", NULL); ++ _tmp31_ = g_strconcat (_tmp30_, ":%%QT4_LIBDIR%%/plugins:%%QT5_LIBDIR%%/plugins", NULL); + _tmp32_ = _tmp31_; + g_setenv ("QT_PLUGIN_PATH", _tmp32_, TRUE); + _g_free0 (_tmp32_); Property changes on: head/x11-wm/lxsession/files/patch-lxsession_environement.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/x11-wm/lxsession/files/patch-lxsession_environement.vala =================================================================== --- head/x11-wm/lxsession/files/patch-lxsession_environement.vala (nonexistent) +++ head/x11-wm/lxsession/files/patch-lxsession_environement.vala (revision 432390) @@ -0,0 +1,11 @@ +--- lxsession/environement.vala.orig 2016-12-05 20:07:14 UTC ++++ lxsession/environement.vala +@@ -331,7 +331,7 @@ namespace Lxsession + { + if (qt_plugin != "") + { +- Environment.set_variable("QT_PLUGIN_PATH" , qt_plugin + ":/usr/lib64/kde4/plugins:/usr/lib/kde4/plugins", true); ++ Environment.set_variable("QT_PLUGIN_PATH" , qt_plugin + ":%%QT4_LIBDIR%%/plugins:%%QT5_LIBDIR%%/plugins", true); + } + } + Property changes on: head/x11-wm/lxsession/files/patch-lxsession_environement.vala ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/x11-wm/lxsession/files/pkg-message.in =================================================================== --- head/x11-wm/lxsession/files/pkg-message.in (nonexistent) +++ head/x11-wm/lxsession/files/pkg-message.in (revision 432390) @@ -0,0 +1,11 @@ +To be able to shutdown or reboot your system, you'll have to add .rules +files in %%LOCALBASE%%/etc/polkit-1/rules.d directory. Which looks +like this (replace PUTYOURGROUPHERE by your group): + +polkit.addRule(function (action, subject) { + if ((action.id == "org.freedesktop.consolekit.system.restart" || + action.id == "org.freedesktop.consolekit.system.stop") + && subject.isInGroup("PUTYOURGROUPHERE")) { + return polkit.Result.YES; + } +}); Property changes on: head/x11-wm/lxsession/files/pkg-message.in ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/x11-wm/lxsession/pkg-descr =================================================================== --- head/x11-wm/lxsession/pkg-descr (revision 432389) +++ head/x11-wm/lxsession/pkg-descr (revision 432390) @@ -1,4 +1,4 @@ -lxsession is a standard-compliant X11 session manager with -shutdown/reboot/suspend supports via HAL and gdm. +LXSession is a lightweight X11 session manager, designed for use with +the Lightweight X11 Desktop Environment (LXDE). -WWW: http://lxde.sourceforge.net/ +WWW: http://lxde.org/ Index: head/x11-wm/lxsession/pkg-plist =================================================================== --- head/x11-wm/lxsession/pkg-plist (revision 432389) +++ head/x11-wm/lxsession/pkg-plist (revision 432390) @@ -1,72 +1,101 @@ +bin/lxclipboard bin/lxlock +bin/lxpolkit bin/lxsession +bin/lxsession-db +bin/lxsession-default +bin/lxsession-default-apps +bin/lxsession-default-terminal +bin/lxsession-edit bin/lxsession-logout +bin/lxsession-xdg-autostart +bin/lxsettings-daemon +etc/xdg/autostart/lxpolkit.desktop +libexec/lxsession/lxsession-xsettings +man/man1/lxclipboard.1.gz +man/man1/lxlock.1.gz +man/man1/lxpolkit.1.gz +man/man1/lxsession-db.1.gz +man/man1/lxsession-default-apps.1.gz +man/man1/lxsession-default-terminal.1.gz +man/man1/lxsession-default.1.gz +man/man1/lxsession-edit.1.gz man/man1/lxsession-logout.1.gz +man/man1/lxsession-xdg-autostart.1.gz man/man1/lxsession.1.gz +man/man1/lxsettings-daemon.1.gz +share/applications/lxsession-default-apps.desktop +share/applications/lxsession-edit.desktop %%NLS%%share/locale/af/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/am/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/ar/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/ast/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/be/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/bg/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/bn/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/bn_IN/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/ca/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/cs/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/da/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/de/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/el/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/en_GB/LC_MESSAGES/lxsession.mo +%%NLS%%share/locale/eo/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/es/LC_MESSAGES/lxsession.mo -%%NLS%%share/locale/es_VE/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/et/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/eu/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/fa/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/fi/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/fo/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/fr/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/frp/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/gl/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/he/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/hr/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/hu/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/id/LC_MESSAGES/lxsession.mo +%%NLS%%share/locale/is/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/it/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/ja/LC_MESSAGES/lxsession.mo +%%NLS%%share/locale/kk/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/ko/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/lg/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/lt/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/ml/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/ms/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/nb/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/nl/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/nn/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/pa/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/pl/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/ps/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/pt/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/pt_BR/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/ro/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/ru/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/si/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/sk/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/sl/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/sr/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/sr@latin/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/sv/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/te/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/th/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/tr/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/tt_RU/LC_MESSAGES/lxsession.mo +%%NLS%%share/locale/ug/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/uk/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/ur/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/ur_PK/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/vi/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/zh_CN/LC_MESSAGES/lxsession.mo %%NLS%%share/locale/zh_TW/LC_MESSAGES/lxsession.mo %%DATADIR%%/images/gnome-session-hibernate.png %%DATADIR%%/images/gnome-session-reboot.png %%DATADIR%%/images/gnome-session-suspend.png %%DATADIR%%/images/gnome-session-switch.png %%DATADIR%%/images/system-log-out.png %%DATADIR%%/images/system-shutdown.png +%%DATADIR%%/ui/lxpolkit.ui +%%DATADIR%%/ui/lxsession-default-apps.ui +%%DATADIR%%/ui/lxsession-edit.ui