summaryrefslogtreecommitdiff
path: root/x11-misc/tint2
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /x11-misc/tint2
reinit the tree, so we can have metadata
Diffstat (limited to 'x11-misc/tint2')
-rw-r--r--x11-misc/tint2/Manifest11
-rw-r--r--x11-misc/tint2/files/0.12.12-fix-compilation-without-svg.patch18
-rw-r--r--x11-misc/tint2/files/0.12.12-no-hardcode-update-icon-cache.patch34
-rw-r--r--x11-misc/tint2/files/0.12.12-relax-pango-includes.patch26
-rw-r--r--x11-misc/tint2/files/0.14.6-sysconfdir-xdg2.patch12
-rw-r--r--x11-misc/tint2/metadata.xml18
-rw-r--r--x11-misc/tint2/tint2-0.12.12.ebuild65
-rw-r--r--x11-misc/tint2/tint2-0.14.6-r2.ebuild63
8 files changed, 247 insertions, 0 deletions
diff --git a/x11-misc/tint2/Manifest b/x11-misc/tint2/Manifest
new file mode 100644
index 000000000000..d836d0ebde83
--- /dev/null
+++ b/x11-misc/tint2/Manifest
@@ -0,0 +1,11 @@
+AUX 0.12.12-fix-compilation-without-svg.patch 533 SHA256 aaec5fd31946a4aa958d63054f6037e47c3e902cec98fb3f0ca82c16149755b8 SHA512 4f4353f433dd30a244e33f320986ae1f0009d4d5144e85050e8799a772a78d6959927b91ee16f124270c450286b82b4e5ec3166e4624923684de88a7b3c6b014 WHIRLPOOL 7b02c90c331c011d36d77bd33bd684d14437393b5986755ae21e4d7c0bd025674b8779dd2a20eb5971a253eac06fd962c3bac920d29726fa7446bfbfd61cefa5
+AUX 0.12.12-no-hardcode-update-icon-cache.patch 1678 SHA256 5640fe84d4fcb2d50a30896850160254c57831d7786fac5d1686f7830ccc5c73 SHA512 4d874220998de50d71140af792e9e081ad68e9cdc09530747c4b053ff1536c8d971160bb1d3e850bc831a3c7eed31dba7516fdc21c9b579aba22a9e45be6c06e WHIRLPOOL 15b5390cd675bd7774082c5ddb985ec60424763f85e725eec9eee0824c005ee064408c6a997a91747a14c9f80561a4e39c32b238338517738b7d59f3e7d04628
+AUX 0.12.12-relax-pango-includes.patch 615 SHA256 c8daa8b9f0d645125e5fd09417a4cda7be0f9c4da07716c1e70b1cd03f2dce34 SHA512 a35615fbf20b0a13c22b23f9882f67cc34c69a9492840d3bf1753a76e218d1b72607884e4e7d7c6d8836e0b6b35c1eb10e88e7d1c327677b059264f2184f76ec WHIRLPOOL 46b1892aebc52d42275152777426ee80ef8ac2d0914b89f62c5ee4c5c010e2121306aaf3a72a23962714c7b26e9b95c675b062354d1d2d886cfd089b832dbd06
+AUX 0.14.6-sysconfdir-xdg2.patch 660 SHA256 b8b5c21d6030dca86eb66ee47b5569dc584bd53f550b830191ba73627641886d SHA512 0780f293148ec97c5cdaf2751c3b69e6b4f75256f10eb0f756a7685caffd0c1903459fb0710cce70b0de65bc07d5a9dfff29abf9ae0711ce76e9b7336621c9be WHIRLPOOL 081aa4a1e41274977a4f3442e7632b388b017990ab22d0f2af588629bb956cb3331ff58d96be6519d608e4d057057bdc360c235008f2f15a67c77d231380d308
+DIST tint2-0.12.12.tar.gz 469724 SHA256 e4c6ffb67eb1242f19d94037b072602bc751ac71ca61352dea3465168e643450 SHA512 10a1f42df6a66f6e092d69cd0ea3d900dcef57b06391206d950a1d7f576a880829bb44d00828a030d3172184db238a22f205169c12cc32cf42c6321d61929a8c WHIRLPOOL 197b92a93eb0368708824159bde41bd81143d0423a1f9ab83b2af4a11b3e3055a40481b9746f095e10cca84f7d772237a92d06bf267761021be308c0b3b5d553
+DIST tint2-0.14.6.tar.gz 466533 SHA256 1770e2a37dc8066a33af7385ba1bbe7405101bced8e9fc7ee95d48cef53cd351 SHA512 eb1505bef932aa0cd0291dc762d3c9cbe760e3fea0684fc604aa3cae3f5ddf63e5b791db745eb29384e4732e6de09a01084f3ce2a92931b431cdf69a59b1f6da WHIRLPOOL ae9a00d866f868842600355fd463556b55405d13c2cf6344f4a72b541b445cdb22e6d576ae202452f5502caba17ddba33d008b5d4f763f53c72fb7d87afa79c8
+EBUILD tint2-0.12.12.ebuild 1400 SHA256 b672442f0cbce414ec94bfcf8dd7520d85aa10edbdfbff92aa70bddcbd25d4f1 SHA512 97b0a093ba91d254201b1105524c5eb087d09589be1560f5adfd76da26b803da3efff44f3974e273d694086dc3f50693c6a5cae1798fd1e11be98d6942167d0d WHIRLPOOL 4169fc8919ff59a7e5b41d26bf88748d30f36c0bab5abf315f23fabaef87667aad6ca82caf7e8754b488ee8479860d74e1bd5493d2ddfda64fe0b8733ac6905c
+EBUILD tint2-0.14.6-r2.ebuild 1341 SHA256 3586659d3d377c15ecaae7d04123462494f856b8c8d908865c8cd3b73ac1b48a SHA512 a76155df865a0b6dd2c12709f42e2848b9330e51a0c55392c42caa76f017550a94343469b741cfbee375f527b711a8a158efdccf315f3917442f13fec91d19f7 WHIRLPOOL e22f984e5fa14e7ecc12fd6aa3e58851ed3e1bb0cc508b94fb6c55cab2e9acd12891aede289f22d68bf1f30e62233b875d8d5957654737016cbc4d04847dc7bd
+MISC ChangeLog 3390 SHA256 edb4d0c6552d2360ecf92bef6691d05cd4f4723e61f6f349d6f5271d877107cc SHA512 af2bacd365df9a382b471e94f13560484a2ffaea3835f16f129f8f4279fd1ee3430ba6c91e7051b1c589f70744add18365e8ed22f50d8fc1ccdc8c2ddc029712 WHIRLPOOL 3bcac542e0cfc2cd99b2f08477817758b1e13f9cc4a5f84c4d21942b13b8b74af84e688f90cbf46135b89071e57994dd8dd3346bfe4078047cdda8192eefdc4c
+MISC ChangeLog-2015 4825 SHA256 26e2e5cd63dfb8ca51d7d1b791d46539803230a6a8e5b55e1c5ee64379faed57 SHA512 8dcc50d7ce591baf0b92cd2363b2e1b564dc30931742dbb5545ac026855c392483993562803f7b1d72e5a63aefc636018dba1283a2bc6916084c7413e591ceef WHIRLPOOL b537c91e50edff6663d7eeab61902a21c508bb0fb226f851d695855bb526aec912878c3671e54dcf81deb06ce037e1d8a0c69aedb26b927185db6b4bfa79c976
+MISC metadata.xml 789 SHA256 d5f919819721e125937242636cfaeba9693afe0712f51c14c4f3878a5f4dbf86 SHA512 e50c127a10ae89a7ec04c7b3a1d5dad3fd1ca89ac37b66378d8b24921d3ffe43ea4037182e20a624880be0eea527414e3727726e6799bbec4d46e2d3bdc934cf WHIRLPOOL 54ac478c45b5539f410308c939ee4fee7faaa4b3e185a40cb12caf7602c609d915e4f987f246819890df373e9ebd5521a37590ffbc8f2105d5566e8e12cc6d8e
diff --git a/x11-misc/tint2/files/0.12.12-fix-compilation-without-svg.patch b/x11-misc/tint2/files/0.12.12-fix-compilation-without-svg.patch
new file mode 100644
index 000000000000..c6da687baca8
--- /dev/null
+++ b/x11-misc/tint2/files/0.12.12-fix-compilation-without-svg.patch
@@ -0,0 +1,18 @@
+From 2c42a787257e0801b8454fd8960d6794831cedea Mon Sep 17 00:00:00 2001
+From: o9000 <mrovi9000@gmail.com>
+Date: Sat, 8 Oct 2016 15:02:28 +0200
+Subject: Fix compilation with ENABLE_RSVG=OFF (fixes issue #602)
+
+
+diff --git a/src/launcher/launcher.c b/src/launcher/launcher.c
+index 0b4172f..0052e90 100644
+--- a/src/launcher/launcher.c
++++ b/src/launcher/launcher.c
+@@ -30,7 +30,6 @@
+ #include <glib/gi18n.h>
+ #include <glib.h>
+ #include <glib/gstdio.h>
+-#include <gdk-pixbuf/gdk-pixbuf.h>
+ #include <sys/types.h>
+
+ #include "window.h"
diff --git a/x11-misc/tint2/files/0.12.12-no-hardcode-update-icon-cache.patch b/x11-misc/tint2/files/0.12.12-no-hardcode-update-icon-cache.patch
new file mode 100644
index 000000000000..21a80eb36d43
--- /dev/null
+++ b/x11-misc/tint2/files/0.12.12-no-hardcode-update-icon-cache.patch
@@ -0,0 +1,34 @@
+From 6306f9920f639cf092ca3f1935ac7aa202f78c86 Mon Sep 17 00:00:00 2001
+From: Yuri Konotopov <ykonotopov@gnome.org>
+Date: Fri, 13 Jan 2017 19:06:43 +0400
+Subject: [PATCH] cmake: do not hardcode icon cache update
+
+---
+ CMakeLists.txt | 1 -
+ src/tint2conf/CMakeLists.txt | 1 -
+ 2 files changed, 2 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index b4a1089..ef06393 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -241,7 +241,6 @@ set_target_properties( tint2 PROPERTIES LINK_FLAGS "-pthread -fno-strict-aliasin
+ install( TARGETS tint2 DESTINATION bin )
+ install( FILES tint2.svg DESTINATION ${DATADIR}/icons/hicolor/scalable/apps )
+ install( FILES tint2.desktop DESTINATION ${DATADIR}/applications )
+-install( CODE "execute_process(COMMAND gtk-update-icon-cache -f -t ${DATADIR}/icons/hicolor WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX})" )
+ install( FILES themes/tint2rc DESTINATION ${SYSCONFDIR}/xdg/tint2 )
+ install( FILES default_icon.png DESTINATION ${DATADIR}/tint2 )
+ install( FILES AUTHORS ChangeLog README.md doc/tint2.md doc/manual.html doc/readme.html DESTINATION ${DOCDIR} )
+diff --git a/src/tint2conf/CMakeLists.txt b/src/tint2conf/CMakeLists.txt
+index 9595f6a..fd616fa 100644
+--- a/src/tint2conf/CMakeLists.txt
++++ b/src/tint2conf/CMakeLists.txt
+@@ -72,4 +72,3 @@ add_subdirectory(po)
+ install( TARGETS tint2conf DESTINATION bin )
+ install( FILES tint2conf.svg DESTINATION ${DATADIR}/icons/hicolor/scalable/apps )
+ install( FILES tint2conf.desktop DESTINATION ${DATADIR}/applications )
+-install( CODE "execute_process(COMMAND gtk-update-icon-cache -f -t ${DATADIR}/icons/hicolor WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX})" )
+--
+2.10.2
+
diff --git a/x11-misc/tint2/files/0.12.12-relax-pango-includes.patch b/x11-misc/tint2/files/0.12.12-relax-pango-includes.patch
new file mode 100644
index 000000000000..e9e40f305b34
--- /dev/null
+++ b/x11-misc/tint2/files/0.12.12-relax-pango-includes.patch
@@ -0,0 +1,26 @@
+From c3a86e185d548e11bb12bc766a58fd3b617c1c46 Mon Sep 17 00:00:00 2001
+From: o9000 <mrovi9000@gmail.com>
+Date: Sun, 18 Sep 2016 12:53:59 +0200
+Subject: [PATCH] Fix include (fixes issue #596)
+
+---
+ src/config.c | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/src/config.c b/src/config.c
+index a831ece..13f3b7b 100644
+--- a/src/config.c
++++ b/src/config.c
+@@ -31,8 +31,7 @@
+ #include <string.h>
+ #include <ctype.h>
+ #include <glib/gstdio.h>
+-#include <pango/pangocairo.h>
+-#include <pango/pangoxft.h>
++#include <pango/pango-font.h>
+ #include <Imlib2.h>
+
+ #include "config.h"
+--
+libgit2 0.24.0
+
diff --git a/x11-misc/tint2/files/0.14.6-sysconfdir-xdg2.patch b/x11-misc/tint2/files/0.14.6-sysconfdir-xdg2.patch
new file mode 100644
index 000000000000..6b29b49aaf72
--- /dev/null
+++ b/x11-misc/tint2/files/0.14.6-sysconfdir-xdg2.patch
@@ -0,0 +1,12 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -257,7 +257,7 @@
+ install( TARGETS tint2 DESTINATION bin )
+ install( FILES tint2.svg DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/hicolor/scalable/apps )
+ install( FILES tint2.desktop DESTINATION ${CMAKE_INSTALL_DATADIR}/applications )
+-install( FILES themes/tint2rc DESTINATION /etc/xdg/tint2 )
++install( FILES themes/tint2rc DESTINATION ${CMAKE_INSTALL_FULL_SYSCONFDIR}/xdg/tint2 )
+ install( FILES default_icon.png DESTINATION ${CMAKE_INSTALL_DATADIR}/tint2 )
+ install( FILES AUTHORS ChangeLog README.md doc/tint2.md DESTINATION ${docdir} )
+ install( FILES doc/manual.html doc/readme.html DESTINATION ${htmldir} )
+
diff --git a/x11-misc/tint2/metadata.xml b/x11-misc/tint2/metadata.xml
new file mode 100644
index 000000000000..3187164d5a91
--- /dev/null
+++ b/x11-misc/tint2/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>amynka@gentoo.org</email>
+ </maintainer>
+ <use>
+ <flag name="battery">Enable battery status plugin</flag>
+ <flag name="tint2conf">Build/Install tint2conf as well</flag>
+ </use>
+ <longdescription lang="en">tint2 is a simple panel/taskbar intentionally made for
+ <pkg>x11-wm/openbox</pkg>3, but should also work with other window managers.
+ It's based on ttm code https://code.google.com/p/ttm/.
+ The goal is to keep a clean and unintrusive look with code lightweight and compliance with freedesktop specifications.</longdescription>
+ <upstream>
+ <remote-id type="google-code">tint2</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/x11-misc/tint2/tint2-0.12.12.ebuild b/x11-misc/tint2/tint2-0.12.12.ebuild
new file mode 100644
index 000000000000..8f0b0b56d984
--- /dev/null
+++ b/x11-misc/tint2/tint2-0.12.12.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils gnome2-utils vcs-snapshot
+
+DESCRIPTION="tint2 is a lightweight panel/taskbar for Linux."
+HOMEPAGE="https://gitlab.com/o9000/tint2"
+SRC_URI="https://gitlab.com/o9000/${PN}/repository/archive.tar.gz?ref=v${PV} -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="battery svg startup-notification tint2conf"
+
+DEPEND="
+ dev-libs/glib:2
+ svg? ( gnome-base/librsvg:2 )
+ >=media-libs/imlib2-1.4.2[X,png]
+ x11-libs/cairo[X]
+ x11-libs/pango
+ tint2conf? ( x11-libs/gtk+:2 )
+ x11-libs/libX11
+ x11-libs/libXcomposite
+ x11-libs/libXdamage
+ x11-libs/libXinerama
+ >=x11-libs/libXrandr-1.3
+ x11-libs/libXrender
+ startup-notification? ( x11-libs/startup-notification )
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/${PV}-fix-compilation-without-svg.patch"
+ "${FILESDIR}/${PV}-no-hardcode-update-icon-cache.patch"
+ "${FILESDIR}/${PV}-relax-pango-includes.patch"
+)
+
+src_configure() {
+ local mycmakeargs=(
+ -DENABLE_BATTERY="$(usex battery)"
+ -DENABLE_TINT2CONF="$(usex tint2conf)"
+ -DENABLE_SN="$(usex startup-notification)"
+ -DENABLE_RSVG="$(usex svg)"
+ )
+
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/x11-misc/tint2/tint2-0.14.6-r2.ebuild b/x11-misc/tint2/tint2-0.14.6-r2.ebuild
new file mode 100644
index 000000000000..bc7cd9da3b23
--- /dev/null
+++ b/x11-misc/tint2/tint2-0.14.6-r2.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils gnome2-utils vcs-snapshot
+
+DESCRIPTION="tint2 is a lightweight panel/taskbar for Linux."
+HOMEPAGE="https://gitlab.com/o9000/tint2"
+SRC_URI="https://gitlab.com/o9000/${PN}/repository/archive.tar.gz?ref=v${PV} -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="battery svg startup-notification tint2conf"
+
+DEPEND="
+ dev-libs/glib:2
+ svg? ( gnome-base/librsvg:2 )
+ >=media-libs/imlib2-1.4.2[X,png]
+ x11-libs/cairo[X]
+ x11-libs/pango
+ tint2conf? ( x11-libs/gtk+:2 )
+ x11-libs/libX11
+ x11-libs/libXcomposite
+ x11-libs/libXdamage
+ x11-libs/libXinerama
+ >=x11-libs/libXrandr-1.3
+ x11-libs/libXrender
+ startup-notification? ( x11-libs/startup-notification )
+"
+RDEPEND="${DEPEND}"
+
+# bug 629312
+PATCHES=( "${FILESDIR}/${PV}-sysconfdir-xdg2.patch" )
+
+src_configure() {
+ local mycmakeargs=(
+ -Ddocdir="${EPREFIX}/usr/share/doc/${PF}"
+ -DENABLE_BATTERY="$(usex battery)"
+ -DENABLE_TINT2CONF="$(usex tint2conf)"
+ -DENABLE_SN="$(usex startup-notification)"
+ -DENABLE_RSVG="$(usex svg)"
+ )
+
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}