commit:     8f70ddbb4d2899c0f7ee0a6e55402bf2548478c5
Author:     Ilya Tumaykin <itumaykin <AT> gmail <DOT> com>
AuthorDate: Tue May 17 11:40:35 2016 +0000
Commit:     Sam Jorna <wraeth <AT> gentoo <DOT> org>
CommitDate: Wed May 18 13:30:01 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f70ddbb

x11-themes/neutral-xcursors: verbump to 20150106

Major overhaul since the previous version.

Neutral, Neutral Plus, Neutral++, and Neutral++ White themes are now installed
as opposed to only Neutral Plus before. All these themes share the same origin,
but have noticeable differences.

${PV} now refers to the most recently updated theme, see ebuild for more info.

Fixed bugs:
- migrate away from deprecated EAPI;
- install themes to XDG-compliant directory (see bug 582818);
- install XDG-compliant index.theme for Neutral Plus;
- drop examples USE flag, which simply installed cursors twice;
- fix mess in the dependencies.

Package-Manager: portage-2.3.0_rc1
Signed-off-by: Sam Jorna <wraeth <AT> gentoo.org>

 x11-themes/neutral-xcursors/Manifest               |  4 +
 x11-themes/neutral-xcursors/files/index.theme      |  3 +
 .../neutral-xcursors-20150106.ebuild               | 99 ++++++++++++++++++++++
 3 files changed, 106 insertions(+)

diff --git a/x11-themes/neutral-xcursors/Manifest 
b/x11-themes/neutral-xcursors/Manifest
index 134e787..1f726ff 100644
--- a/x11-themes/neutral-xcursors/Manifest
+++ b/x11-themes/neutral-xcursors/Manifest
@@ -1 +1,5 @@
 DIST 48837-Neutral_Plus_1.2.tar.bz2 61354 SHA256 
6b496406128fb3effd4e87159a29811d12a1b2f071e1341e67a6744c57d206dd SHA512 
e20b4aa172561b04d39a3209a0977d6d7d8f1956fb4d60f7dd022b7ae6195890956b76facbe58fe3d5fd6a4b844f0c14da5d09f7f82379048c610e41133a713d
 WHIRLPOOL 
86aa0ead57c70d947dbd62a457067f7d8fd468ebdb3b5b52e67abe0b0278256557b83f861aa95e5b29d0e42459dd66f78cb5563772ac1238b9e41751876ae489
+DIST Neutral++-1.0.3.tar.bz2 43751 SHA256 
23ec4fa3f7b62c023b8726b70d7a822ecd1f3cf90515b302d988f6fe58bce426 SHA512 
59690f691bfa1695565f72282262b5def52d06969edd2b277a5aca6bcd3afa4a1a4cd6b7ac9f7036da9c5e82caf0e7379b654f199fa2fb9d31fb0dccea333b77
 WHIRLPOOL 
3ce7de9dd87e191d20e2dd239be1de9c8a0812200e9874e3e4cc0f64a740203bbe17730714f012db8b7e46476c480915d471cc1a8e5e5345ac8bfbdb219a4ea3
+DIST Neutral++_White-1.1.1.tar.bz2 42982 SHA256 
2ba4b89abdc4394e605dd2e983c08517fce50265864be27c138d9f225decf47f SHA512 
0027dd2823c605c810904d86fd25d021cde14c24c4b1cb507dd5829ac0cd6763fa96296db76422a1b2667b7e2a4b4ca397bfc26823f5b2656753a507cb71f0a2
 WHIRLPOOL 
9ca431bb7b4b6a121a488c1d55d45606b188f030eae0667cfa00ccb602315e584615e8ad657169f11b59de9afaaa10bcad7230b07740c19d1005cf421fce45a2
+DIST Neutral-1.13a.tar.gz 68777 SHA256 
f67f613fa1e16742f144f26ef149fb24a55fe59c4237aa9a7d124c133484b0f9 SHA512 
bee7d433294e74fd4c4e1e7892b15035c9f880a85da7b5faae16efc517cfd939a14258b36a9aa297db30ff994547262f1c8114a10ec1db497e88245b1905d4c3
 WHIRLPOOL 
42d243ce955bddd0a673f921bca077a4b4f0580b6ddd345103cb850cd2e90be890d28ae7af27a5f4e7bd08870419f9d6134919f7f619e983dc32c195a19c3f73
+DIST Neutral_Plus-1.2.tar.bz2 61354 SHA256 
6b496406128fb3effd4e87159a29811d12a1b2f071e1341e67a6744c57d206dd SHA512 
e20b4aa172561b04d39a3209a0977d6d7d8f1956fb4d60f7dd022b7ae6195890956b76facbe58fe3d5fd6a4b844f0c14da5d09f7f82379048c610e41133a713d
 WHIRLPOOL 
86aa0ead57c70d947dbd62a457067f7d8fd468ebdb3b5b52e67abe0b0278256557b83f861aa95e5b29d0e42459dd66f78cb5563772ac1238b9e41751876ae489

diff --git a/x11-themes/neutral-xcursors/files/index.theme 
b/x11-themes/neutral-xcursors/files/index.theme
new file mode 100644
index 0000000..78d75d9
--- /dev/null
+++ b/x11-themes/neutral-xcursors/files/index.theme
@@ -0,0 +1,3 @@
+[Icon Theme]
+Name=Neutral Plus
+Example=left_ptr_watch

diff --git a/x11-themes/neutral-xcursors/neutral-xcursors-20150106.ebuild 
b/x11-themes/neutral-xcursors/neutral-xcursors-20150106.ebuild
new file mode 100644
index 0000000..2319125
--- /dev/null
+++ b/x11-themes/neutral-xcursors/neutral-xcursors-20150106.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+NEUTRAL_PN="Neutral"
+NEUTRAL_PV="1.13a"             # 2006-03-06
+NEUTRAL_P="${NEUTRAL_PN}-${NEUTRAL_PV}"
+
+PLUS_PN="Neutral_Plus"
+PLUS_PV="1.2"                  # 2007-06-23
+PLUS_P="${PLUS_PN}-${PLUS_PV}"
+
+PLUSPLUS_PN="Neutral++"
+PLUSPLUS_PV="1.0.3"            # 2015-01-06
+PLUSPLUS_P="${PLUSPLUS_PN}-${PLUSPLUS_PV}"
+
+WHITE_PN="Neutral++_White"
+WHITE_PV="1.1.1"               # 2015-01-06
+WHITE_P="${WHITE_PN}-${WHITE_PV}"
+
+inherit gnome2-utils vcs-snapshot
+
+DESCRIPTION="A family of smoothed and shadowed cursors that resemble the 
standard X ones"
+HOMEPAGE="
+       https://opendesktop.org/content/show.php/Neutral?content=28310
+       https://opendesktop.org/content/show.php/Neutral+Plus?content=48837
+       https://opendesktop.org/content/show.php/Neutral%2B%2B?content=108142
+       
https://opendesktop.org/content/show.php/Neutral%2B%2B+White?content=108143
+"
+# Neutral++{,_White} URIs return tar.xz archives that are actually tar.bz2.
+SRC_URI="
+       
https://opendesktop.org/CONTENT/content-files/28310-neutral-${NEUTRAL_PV}.tar.gz
 -> ${NEUTRAL_P}.tar.gz
+       
https://opendesktop.org/CONTENT/content-files/48837-Neutral_Plus_${PLUS_PV}.tar.bz2
 -> ${PLUS_P}.tar.bz2
+       
https://opendesktop.org/CONTENT/content-files/108142-Neutral++-${PLUSPLUS_PV}.tar.xz
 -> ${PLUSPLUS_P}.tar.bz2
+       
https://opendesktop.org/CONTENT/content-files/108143-Neutral++_White-${WHITE_PV}.tar.xz
 -> ${WHITE_P}.tar.bz2
+"
+
+LICENSE="Artistic-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~sparc ~x86 ~x86-fbsd"
+IUSE=""
+
+DEPEND="x11-apps/xcursorgen"
+
+RESTRICT="binchecks strip"
+
+S="${WORKDIR}"
+
+src_prepare() {
+       default_src_prepare
+       sed -i -e 's|neutral|Neutral|g' ${NEUTRAL_P}/index.theme || die
+       mkdir -p ${PLUS_P}/source/cursors || die
+}
+
+src_compile() {
+       for cursor_dir in ${NEUTRAL_P} ${PLUS_P} ${PLUSPLUS_P} ${WHITE_P}; do
+               pushd ${cursor_dir}/source > /dev/null || die
+                       sh make.sh || die
+               popd > /dev/null || die
+       done
+}
+
+src_install() {
+       pushd ${NEUTRAL_P} > /dev/null || die
+               insinto /usr/share/icons/${NEUTRAL_PN}
+               doins -r index.theme source/cursors/
+       popd > /dev/null || die
+
+       pushd ${PLUS_P} > /dev/null || die
+               insinto /usr/share/icons/${PLUS_PN}
+               # Upstream ships an invalid (as per freedesktop.org) 
index.theme.
+               # See 
https://www.freedesktop.org/wiki/Specifications/icon-theme-spec/
+               doins -r "${FILESDIR}/index.theme" source/cursors/
+       popd > /dev/null || die
+
+       pushd ${PLUSPLUS_P} > /dev/null || die
+               insinto /usr/share/icons/${PLUSPLUS_PN}
+               doins -r index.theme cursors/
+       popd > /dev/null || die
+
+       pushd ${WHITE_P} > /dev/null || die
+               insinto /usr/share/icons/${WHITE_PN}
+               doins -r index.theme cursors/
+       popd > /dev/null || die
+}
+
+pkg_preinst() {
+       gnome2_icon_savelist
+}
+
+pkg_postinst() {
+       gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+       gnome2_icon_cache_update
+}

Reply via email to