FreeBSD Bugzilla – Attachment 159622 Details for
Bug 202137
[UPDATE] x11/tint to 0.12.1
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to update x11/tint
tint.diff (text/plain), 10.93 KB, created by
Olivier Duchateau
on 2015-08-06 17:47:47 UTC
(
hide
)
Description:
Patch to update x11/tint
Filename:
MIME Type:
Creator:
Olivier Duchateau
Created:
2015-08-06 17:47:47 UTC
Size:
10.93 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 393663) >+++ Makefile (working copy) >@@ -1,10 +1,9 @@ > # $FreeBSD$ > > PORTNAME= tint2 >-PORTVERSION= 0.11 >-PORTREVISION= 4 >+PORTVERSION= 0.12.1 > CATEGORIES= x11 >-MASTER_SITES= GOOGLE_CODE >+MASTER_SITES= http://leigh123linux.fedorapeople.org/pub/${PORTNAME}/source/ > > MAINTAINER= yamagi@yamagi.org > COMMENT= Lightweight freedesktop-compliant panel/taskbar/systray/clock >@@ -12,59 +11,18 @@ > LICENSE= GPLv2 > LICENSE_FILE= ${WRKSRC}/COPYING > >-LIB_DEPENDS= libcairo.so:${PORTSDIR}/graphics/cairo \ >- libImlib2.so:${PORTSDIR}/graphics/imlib2 >+LIB_DEPENDS= libImlib2.so:${PORTSDIR}/graphics/imlib2 \ >+ libstartup-notification-1.so:${PORTSDIR}/x11/startup-notification > >-PROJECTHOST= tint2 >-USES= alias cmake pkgconfig tar:bzip2 >-USE_GNOME= glib20 pango >-USE_XORG= xdamage xcomposite xinerama xrandr >+USES= alias cmake gettext pkgconfig >+USE_GNOME= glib20 librsvg2 pango >+USE_XORG= x11 xcomposite xdamage xinerama xrandr xrender > >-CMAKE_ARGS= -DENABLE_BATTERY:BOOL=ON -DMANDIR:PATH=man >+CMAKE_ARGS= -DMANDIR:PATH=man > >-OPTIONS_DEFINE= DOCS EXAMPLES PYCONF >-OPTIONS_DEFAULT= PYCONF >+OPTIONS_DEFINE= EXAMPLES >+EXAMPLES_CMAKE_ON= -DENABLE_EXAMPLES:BOOL=ON >+EXAMPLES_CMAKE_OFF= -DENABLE_EXAMPLES:BOOL=OFF > OPTIONS_SUB= yes >-PYCONF_DESC= Configuration editing tool (requires python) > >-PORTEXAMPLES= icon_and_text_1.tint2rc icon_and_text_2.tint2rc \ >- icon_and_text_3.tint2rc icon_and_text_4.tint2rc \ >- icon_only_1.tint2rc icon_only_2.tint2rc icon_only_3.tint2rc \ >- icon_only_4.tint2rc icon_only_6.tint2rc icon_only_7.tint2rc \ >- text_only_1.tint2rc text_only_2.tint2rc text_only_3.tint2rc \ >- text_only_4.tint2rc text_only_5.tint2rc text_only_6.tint2rc tint2rc >-PORTDOCS= AUTHORS ChangeLog README >- >-PYCONF_USES= python >-PYCONF_USE= gnome=gtk20,pygtk2 >-PYCONF_CMAKE_ON= -DENABLE_TINT2CONF:BOOL=ON >-PYCONF_CMAKE_OFF= -DENABLE_TINT2CONF:BOOL=OFF >- >-.include <bsd.port.options.mk> >- >-.if ${PORT_OPTIONS:MPYCONF} >-PYCONF_SRC= ${WRKSRC}/src/tint2conf >-post-patch: >- @${MV} ${PYCONF_SRC}/tintwizard.py ${PYCONF_SRC}/tintwizard.py.Dist >- @${SED} -e 's#pidof#pgrep#g' ${PYCONF_SRC}/tintwizard.py.Dist \ >- > ${PYCONF_SRC}/tintwizard.py >-.endif >- >-do-install: >- ${INSTALL_PROGRAM} ${WRKSRC}/tint2 ${STAGEDIR}${PREFIX}/bin >- ${MKDIR} ${STAGEDIR}${PREFIX}/share/tint2 >- ${INSTALL_DATA} ${WRKSRC}/default_icon.png ${STAGEDIR}${PREFIX}/share/tint2 >- ${INSTALL_MAN} ${WRKSRC}/doc/tint2.1 ${STAGEDIR}${MANPREFIX}/man/man1 >-.if ${PORT_OPTIONS:MPYCONF} >- ${INSTALL_PROGRAM} ${PYCONF_SRC}/tint2conf ${STAGEDIR}${PREFIX}/bin >- ${INSTALL_SCRIPT} ${PYCONF_SRC}/tintwizard.py ${STAGEDIR}${PREFIX}/bin >- ${INSTALL_DATA} ${PYCONF_SRC}/tint2conf.desktop ${STAGEDIR}${PREFIX}/share/applications >- ${INSTALL_DATA} ${PYCONF_SRC}/tint2conf.png ${STAGEDIR}${PREFIX}/share/pixmaps >- ${INSTALL_DATA} ${PYCONF_SRC}/tint2conf.svg ${STAGEDIR}${PREFIX}/share/pixmaps >-.endif >- ${MKDIR} ${STAGEDIR}${DOCSDIR} >- ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} >- ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} >- ${INSTALL_DATA} ${PORTEXAMPLES:S|^|${WRKSRC}/sample/|} ${STAGEDIR}${EXAMPLESDIR} >- > .include <bsd.port.mk> >Index: distinfo >=================================================================== >--- distinfo (revision 393663) >+++ distinfo (working copy) >@@ -1,2 +1,2 @@ >-SHA256 (tint2-0.11.tar.bz2) = fe106e6a6057d2631abddde9f82d3fd4fb1985c4fb93f10d3886417a9e22471d >-SIZE (tint2-0.11.tar.bz2) = 91716 >+SHA256 (tint2-0.12.1.tar.gz) = 5731394b812215f56441146d2a50dcf063efda0a19ccf51b3599ddbe07b14559 >+SIZE (tint2-0.12.1.tar.gz) = 230228 >Index: files/patch-CMakeLists.txt >=================================================================== >--- files/patch-CMakeLists.txt (revision 0) >+++ files/patch-CMakeLists.txt (working copy) >@@ -0,0 +1,11 @@ >+--- CMakeLists.txt.orig 2015-08-04 09:22:00 UTC >++++ CMakeLists.txt >+@@ -114,7 +114,7 @@ endif() >+ >+ set( MANDIR share/man CACHE PATH "Directory for man pages" ) >+ set( DATADIR share CACHE PATH "Directory for shared data" ) >+-set( SYSCONFDIR /etc CACHE PATH "Directory for configuration files" ) >++set( SYSCONFDIR etc CACHE PATH "Directory for configuration files" ) >+ set( DOCDIR share/doc/tint2 CACHE PATH "Directory for documentation files" ) >+ >+ add_custom_target( version ALL "${PROJECT_SOURCE_DIR}/get_version.sh" "\"${PROJECT_SOURCE_DIR}\"" ) > >Property changes on: files/patch-CMakeLists.txt >___________________________________________________________________ >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: files/patch-src-battery-battery.c >=================================================================== >--- files/patch-src-battery-battery.c (revision 393663) >+++ files/patch-src-battery-battery.c (working copy) >@@ -1,144 +0,0 @@ >-Index: src/battery/battery.c >-=================================================================== >---- src/battery/battery.c (Revision 514) >-+++ src/battery/battery.c (Revision 515) >-@@ -24,13 +24,18 @@ >- #include <cairo-xlib.h> >- #include <pango/pangocairo.h> >- >--#if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) >-+#if defined(__OpenBSD__) || defined(__NetBSD__) >- #include <machine/apmvar.h> >- #include <err.h> >- #include <sys/ioctl.h> >- #include <unistd.h> >- #endif >- >-+#if defined(__FreeBSD__) >-+#include <sys/types.h> >-+#include <sys/sysctl.h> >-+#endif >-+ >- #include "window.h" >- #include "server.h" >- #include "area.h" >-@@ -59,11 +64,10 @@ >- char *path_current_now; >- char *path_status; >- >--#if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) >-+#if defined(__OpenBSD__) || defined(__NetBSD__) >- int apm_fd; >- #endif >- >-- >- void update_batterys(void* arg) >- { >- int i; >-@@ -103,7 +107,7 @@ >- path_energy_full = 0; >- path_current_now = 0; >- path_status = 0; >--#if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) >-+#if defined(__OpenBSD__) || defined(__NetBSD__) >- apm_fd = -1; >- #endif >- } >-@@ -118,7 +122,7 @@ >- if (path_status) g_free(path_status); >- if (battery_low_cmd) g_free(battery_low_cmd); >- >--#if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) >-+#if defined(__OpenBSD__) || defined(__NetBSD__) >- if ((apm_fd != -1) && (close(apm_fd) == -1)) >- warn("cannot close /dev/apm"); >- #endif >-@@ -129,7 +133,7 @@ >- { >- if (!battery_enabled) return; >- >--#if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) >-+#if defined(__OpenBSD__) || defined(__NetBSD__) >- apm_fd = open("/dev/apm", O_RDONLY); >- if (apm_fd < 0) { >- warn("init_battery: failed to open /dev/apm."); >-@@ -137,7 +141,7 @@ >- return; >- } >- >--#else >-+#elif !defined(__FreeBSD__) >- // check battery >- GDir *directory = 0; >- GError *error = NULL; >-@@ -258,17 +262,21 @@ >- >- >- void update_battery() { >--#if !defined(__OpenBSD__) && !defined(__FreeBSD__) && !defined(__NetBSD__) >-+#if !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__FreeBSD__) >- // unused on OpenBSD, silence compiler warnings >- FILE *fp; >- char tmp[25]; >- int64_t current_now = 0; >- #endif >-+#if defined(__FreeBSD__) >-+ int sysctl_out = 0; >-+ size_t len = 0; >-+#endif >- int64_t energy_now = 0, energy_full = 0; >- int seconds = 0; >- int8_t new_percentage = 0; >- >--#if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) >-+#if defined(__OpenBSD__) || defined(__NetBSD__) >- struct apm_power_info info; >- if (ioctl(apm_fd, APM_IOC_GETPOWER, &(info)) < 0) >- warn("power update: APM_IOC_GETPOWER"); >-@@ -298,6 +306,45 @@ >- >- new_percentage = info.battery_life; >- >-+#elif defined(__FreeBSD__) >-+ len = sizeof(sysctl_out); >-+ >-+ if (sysctlbyname("hw.acpi.battery.state", &sysctl_out, &len, NULL, 0) != 0) >-+ fprintf(stderr, "power update: no such sysctl"); >-+ >-+ // attemp to map the battery state to linux >-+ battery_state.state = BATTERY_UNKNOWN; >-+ >-+ switch(sysctl_out) { >-+ case 1: >-+ battery_state.state = BATTERY_DISCHARGING; >-+ break; >-+ case 2: >-+ battery_state.state = BATTERY_CHARGING; >-+ break; >-+ default: >-+ battery_state.state = BATTERY_FULL; >-+ break; >-+ } >-+ >-+ // no mapping for freebsd >-+ energy_full = 0; >-+ energy_now = 0; >-+ >-+ if (sysctlbyname("hw.acpi.battery.time", &sysctl_out, &len, NULL, 0) != 0) >-+ seconds = -1; >-+ else >-+ seconds = sysctl_out * 60; >-+ >-+ // charging or error >-+ if (seconds < 0) >-+ seconds = 0; >-+ >-+ if (sysctlbyname("hw.acpi.battery.life", &sysctl_out, &len, NULL, 0) != 0) >-+ new_percentage = -1; >-+ else >-+ new_percentage = sysctl_out; >-+ >- #else >- fp = fopen(path_status, "r"); >- if(fp != NULL) { >- >Index: pkg-descr >=================================================================== >--- pkg-descr (revision 393663) >+++ pkg-descr (working copy) >@@ -13,4 +13,4 @@ > * clock with font, color and transparency > * multi-monitor : panel position adjust to monitor, taskbar by monitor > >-WWW: http://code.google.com/p/tint2/ >+WWW: https://gitlab.com/o9000/tint2 >Index: pkg-plist >=================================================================== >--- pkg-plist (revision 393663) >+++ pkg-plist (working copy) >@@ -1,8 +1,41 @@ > bin/tint2 >+bin/tint2conf >+etc/xdg/tint2/tint2rc > man/man1/tint2.1.gz >+share/applications/tint2.desktop >+share/applications/tint2conf.desktop >+%%DOCSDIR%%/AUTHORS >+%%DOCSDIR%%/ChangeLog >+%%DOCSDIR%%/README.md >+share/icons/hicolor/scalable/apps/tint2.svg >+share/icons/hicolor/scalable/apps/tint2conf.svg >+share/locale/bs/LC_MESSAGES/tint2conf.mo >+share/locale/fr/LC_MESSAGES/tint2conf.mo >+share/locale/hr/LC_MESSAGES/tint2conf.mo >+share/locale/pl/LC_MESSAGES/tint2conf.mo >+share/locale/sr/LC_MESSAGES/tint2conf.mo > %%DATADIR%%/default_icon.png >-%%PYCONF%%bin/tint2conf >-%%PYCONF%%bin/tintwizard.py >-%%PYCONF%%share/applications/tint2conf.desktop >-%%PYCONF%%share/pixmaps/tint2conf.png >-%%PYCONF%%share/pixmaps/tint2conf.svg >+%%EXAMPLES%%%%DATADIR%%/horizontal-dark-opaque.tint2rc >+%%EXAMPLES%%%%DATADIR%%/horizontal-dark-transparent.tint2rc >+%%EXAMPLES%%%%DATADIR%%/horizontal-light-opaque.tint2rc >+%%EXAMPLES%%%%DATADIR%%/horizontal-light-transparent.tint2rc >+%%EXAMPLES%%%%DATADIR%%/icon_and_text_1.tint2rc >+%%EXAMPLES%%%%DATADIR%%/icon_and_text_2.tint2rc >+%%EXAMPLES%%%%DATADIR%%/icon_and_text_3.tint2rc >+%%EXAMPLES%%%%DATADIR%%/icon_and_text_4.tint2rc >+%%EXAMPLES%%%%DATADIR%%/icon_only_1.tint2rc >+%%EXAMPLES%%%%DATADIR%%/icon_only_2.tint2rc >+%%EXAMPLES%%%%DATADIR%%/icon_only_3.tint2rc >+%%EXAMPLES%%%%DATADIR%%/icon_only_4.tint2rc >+%%EXAMPLES%%%%DATADIR%%/icon_only_6.tint2rc >+%%EXAMPLES%%%%DATADIR%%/icon_only_7.tint2rc >+%%EXAMPLES%%%%DATADIR%%/text_only_1.tint2rc >+%%EXAMPLES%%%%DATADIR%%/text_only_2.tint2rc >+%%EXAMPLES%%%%DATADIR%%/text_only_3.tint2rc >+%%EXAMPLES%%%%DATADIR%%/text_only_4.tint2rc >+%%EXAMPLES%%%%DATADIR%%/text_only_5.tint2rc >+%%EXAMPLES%%%%DATADIR%%/text_only_6.tint2rc >+%%EXAMPLES%%%%DATADIR%%/vertical-dark-opaque.tint2rc >+%%EXAMPLES%%%%DATADIR%%/vertical-dark-transparent.tint2rc >+%%EXAMPLES%%%%DATADIR%%/vertical-light-opaque.tint2rc >+%%EXAMPLES%%%%DATADIR%%/vertical-light-transparent.tint2rc
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 202137
: 159622 |
159639
|
159640