summaryrefslogtreecommitdiff
path: root/x11-themes/redhat-artwork
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-themes/redhat-artwork
reinit the tree, so we can have metadata
Diffstat (limited to 'x11-themes/redhat-artwork')
-rw-r--r--x11-themes/redhat-artwork/Manifest5
-rw-r--r--x11-themes/redhat-artwork/metadata.xml15
-rw-r--r--x11-themes/redhat-artwork/redhat-artwork-5.0.8-r4.ebuild143
3 files changed, 163 insertions, 0 deletions
diff --git a/x11-themes/redhat-artwork/Manifest b/x11-themes/redhat-artwork/Manifest
new file mode 100644
index 000000000000..a8808a155843
--- /dev/null
+++ b/x11-themes/redhat-artwork/Manifest
@@ -0,0 +1,5 @@
+DIST redhat-artwork-5.0.8-4.fc7.src.rpm 8298864 SHA256 ca4372b0174999d249400150365c48bcc2e2f8cd8564ce7b5cf8d8bab1dae268 SHA512 e063a281fd561708e560d91b9eb276b0caa80dd6060513240a0a31b6089f3c97fb9959091d719dd6e84b47838408c991a9645be9fc081709027de4d2f2c95a51 WHIRLPOOL 080a47c1091bd98ff09c4b37069905d177c5d391c2f73d298c330b16e53b75232ecba88ae089ed7c5e54b2e85862de796b5259e3cadb50dfde61b8f0fe171db3
+EBUILD redhat-artwork-5.0.8-r4.ebuild 3882 SHA256 1d886bd4588540832834d5ad2529edf81d081ea91ebfd1a5bdfa3c6c635f49f6 SHA512 36dbc0b5a2710e1437e03bc9fc0a1246c0c47d16c67dbae5dd6e0b3e97ea62c2bb745656b3d4c4689b7433421b934cfda29942a3321e8283721f4cd914682eb0 WHIRLPOOL 03b2c51e30a354bd9609a6bbbe5af005033eb2c19cbaec96f69b34594dfa58d06730cd1bc5640f05773af6ab95511a7b650e4fafa07c664b864bf4d191278ebb
+MISC ChangeLog 3117 SHA256 8f31102449dacafd91dd24d15fa3ada60fdf1876cd1c2a3c4466d7022d0f989e SHA512 7bac25b963666189643c65268f7e7047cf092de719d0147135d36b176d71d7481e5a2e104313b501e6c045fda48a048e6aac8993d79d7796bf5cc45d21b2a28a WHIRLPOOL a2982baf45751c526b8cee0e5105b9484a4e5a3398604960d9bed7f538b857cafdede157746da1611565e1f46e21500c741ab8b16b4e992e3fbf3c7c0ddc5b9d
+MISC ChangeLog-2015 15000 SHA256 bd375adf4833094fe042d7cfc46c8d176978866159009078404ad741da6a9088 SHA512 e04d2152286b3926d4aac6050d1ce66873d2ff254cbde175b90ec9727bedc25e0b16804f7781256cf4cfe8ca1335c2572fdaff158c9a08e3faf0ab21908e98fe WHIRLPOOL a34247216a4200da3a062d1fe2474f41307201d819f7cc7dd9ceae332f54137c3ba3f0305ad4874322426ca0672c8ca027b10f0a12a2f51b829eb186246720fd
+MISC metadata.xml 622 SHA256 a21c8ad1c68ca43fd2c496932dcc96895df2995c4af47a586a07939696a369f1 SHA512 e106f17d6330dee2ef583705edc9a58189fbb15814766d89531f2f5a7a104fae86b0d3368b7cb84c2816cfadc91762d0022fceea0597031f6263c8dc2867ba16 WHIRLPOOL 666e6c6f0446ee258ec3f0bdab29b10dbbe3840bf808aaf91951cde7495216bb683ec466d28a987d45022d0222add8d1f92162c65628acbc3c335c9983995900
diff --git a/x11-themes/redhat-artwork/metadata.xml b/x11-themes/redhat-artwork/metadata.xml
new file mode 100644
index 000000000000..a2f4d17bf65d
--- /dev/null
+++ b/x11-themes/redhat-artwork/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+<email>desktop-misc@gentoo.org</email>
+<name>Gentoo Desktop Miscellaneous Project</name>
+</maintainer>
+<use>
+<flag name="audacious">Install <pkg>media-sound/audacious</pkg> theme</flag>
+<flag name="cursors">Install Bluecurve cursors</flag>
+<flag name="gdm">Install Bluecurve <pkg>gnome-base/gdm</pkg> theme</flag>
+<flag name="icons">Install Bluecurve icons</flag>
+<flag name="nautilus">Install Bluecurve <pkg>gnome-base/nautilus</pkg> icons</flag>
+</use>
+</pkgmetadata>
diff --git a/x11-themes/redhat-artwork/redhat-artwork-5.0.8-r4.ebuild b/x11-themes/redhat-artwork/redhat-artwork-5.0.8-r4.ebuild
new file mode 100644
index 000000000000..c19eec809873
--- /dev/null
+++ b/x11-themes/redhat-artwork/redhat-artwork-5.0.8-r4.ebuild
@@ -0,0 +1,143 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools eutils rpm
+
+MY_R=${PR/r/}
+DESCRIPTION="RedHat's Bluecurve theme for GTK2, KDE, GDM, Metacity and Nautilus"
+HOMEPAGE="https://www.redhat.com"
+SRC_URI="mirror://gentoo/${P}-${MY_R}.fc7.src.rpm"
+LICENSE="GPL-2"
+
+SLOT="0"
+KEYWORDS="alpha amd64 ~hppa ia64 ppc sparc x86"
+IUSE="audacious cursors gdm icons nautilus"
+
+RDEPEND="x11-libs/gtk+:2"
+DEPEND="
+ ${RDEPEND}
+ dev-util/intltool
+ media-gfx/icon-slicer
+ virtual/pkgconfig
+"
+
+RESTRICT="test"
+
+src_unpack() {
+ rpm_src_unpack
+}
+
+src_prepare() {
+ epatch "${WORKDIR}"/redhat-artwork-5.0.5-add-dirs-to-bluecurve-theme-index.patch
+ epatch "${WORKDIR}"/redhat-artwork-5.0.8-echo.patch
+
+ # dies if LANG has UTF-8
+ export LANG=C
+ export LC_ALL=C
+
+ rm -f configure
+ sed -i \
+ -e 's|.*MCOPIDL.*||' \
+ -e 's|.*ARTSCCONFIG.*||' \
+ acinclude.m4 || die
+
+ sed -i \
+ -e 's|AC_PATH_KDE||' \
+ -e 's|KDE_CHECK_FINAL||' \
+ -e 's|KDE_SET_PREFIX||' \
+ -e 's|art/kde/Makefile||' \
+ -e 's|art/kde/kwin/Bluecurve/Makefile||' \
+ -e 's|art/kde/kwin/Makefile||' \
+ -e 's|dnl KDE_USE_QT||' \
+ configure.in || die
+
+ sed -i \
+ -e 's|kde||' \
+ -e 's|qt||' \
+ art/Makefile.am || die
+
+ sed -i \
+ -e 's| $(datadir)| $(DESTDIR)$(datadir)|' \
+ art/cursor/Bluecurve/Makefile.am \
+ art/cursor/Bluecurve-inverse/Makefile.am \
+ art/cursor/LBluecurve/Makefile.am \
+ art/cursor/LBluecurve-inverse/Makefile.am \
+ art/icon/Makefile.am \
+ art/icon/Bluecurve/sheets/Makefile.am || die
+
+ eautoreconf
+
+ intltoolize --force || die
+
+ sed -i -e 's|GtkStyle|4|' art/qt/Bluecurve/bluecurve.cpp || die
+}
+
+src_compile() {
+ emake QTDIR="${QTDIR}" styledir="${QTDIR}/plugins/styles"
+}
+
+src_install () {
+ # dies if LANG has UTF-8
+ export LANG=C
+ export LC_ALL=C
+
+ emake \
+ QTDIR="${QTDIR}" \
+ styledir="${QTDIR}/plugins/styles" \
+ DESTDIR="${D}" \
+ install
+
+ # yank redhat logos (registered trademarks, etc)
+ rm -f "${D}/usr/share/gdm/themes/Bluecurve/rh_logo-header.png"
+ rm -f "${D}/usr/share/gdm/themes/Bluecurve/screenshot.png"
+
+ cd "${D}/usr/share/gdm/themes/Bluecurve/" || die
+
+ # replace redhat logo with gnome logo from happygnome theme, use .svg if >=gnome-base/gdm-2.14 installed
+ if has_version gnome-base/gdm >=2.14; then
+ sed -i \
+ -e 's|<normal file="rh_logo-header.png"/>|<normal file="/usr/share/gdm/themes/happygnome/gnome-logo.svg"/>|' \
+ -e 's|<pos x="3%" y="5%" width="398" height="128" anchor="nw"/>|<pos x="3%" y="3%"/>|' Bluecurve.xml \
+ || die
+ else
+ sed -i \
+ -e 's|<normal file="rh_logo-header.png"/>|<normal file="/usr/share/gdm/themes/happygnome/gnome-logo.png"/>|' \
+ -e 's|<pos x="3%" y="5%" width="398" height="128" anchor="nw"/>|<pos x="3%" y="3%"/>|' Bluecurve.xml \
+ || die
+ fi
+
+ # Bluecurve GDM screenshot has redhat logo
+ # Theme copyright notice left intact... do not modify it
+ sed -i -e 's|Screenshot=|#Screenshot=|' GdmGreeterTheme.desktop || die
+
+ X11_IMPLEM="xorg-x11"
+
+ for x in Bluecurve Bluecurve-inverse; do
+ dodir /usr/share/cursors/${X11_IMPLEM}/${x}
+ mv "${D}"/usr/share/icons/${x}/cursors "${D}"/usr/share/cursors/${X11_IMPLEM}/${x}
+ dosym /usr/share/cursors/${X11_IMPLEM}/${x}/cursors /usr/share/icons/${x}/cursors
+ done
+
+ # remove audacious skin if unneeded
+ if ! use audacious; then
+ rm -r "${D}"/usr/share/xmms || die
+ else
+ mv "${D}"/usr/share/xmms "${D}"/usr/share/audacious || die
+ fi
+
+ cd "${S}"
+ dodoc AUTHORS NEWS README ChangeLog
+
+ ###
+ # Some extra features - allows redhat-artwork to be very light:
+ ###
+ if ! use gdm; then rm -r "${D}"/usr/share/gdm || die; fi
+ rm -r "${D}"/usr/share/apps/kdm || die
+ if ! use cursors; then rm -r "${D}"/usr/share/cursors || die; fi
+ if ! use icons; then
+ rm -r "${D}"/usr/share/icons || die
+ rm -r "${D}"/usr/share/pixmaps/*.png || die
+ fi
+ if ! use nautilus; then rm -r "${D}"/usr/share/pixmaps/nautilus || die; fi
+}