summaryrefslogtreecommitdiff
path: root/sys-apps/lcdtest
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 /sys-apps/lcdtest
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-apps/lcdtest')
-rw-r--r--sys-apps/lcdtest/Manifest6
-rw-r--r--sys-apps/lcdtest/files/1.18-build-system.patch62
-rw-r--r--sys-apps/lcdtest/lcdtest-1.18.ebuild60
-rw-r--r--sys-apps/lcdtest/metadata.xml11
4 files changed, 139 insertions, 0 deletions
diff --git a/sys-apps/lcdtest/Manifest b/sys-apps/lcdtest/Manifest
new file mode 100644
index 000000000000..21a6b8a5a938
--- /dev/null
+++ b/sys-apps/lcdtest/Manifest
@@ -0,0 +1,6 @@
+AUX 1.18-build-system.patch 2038 SHA256 8322a0ad06dff81e3214f8c5c3a6b4e416f56a58a711429ea780cf9a6db7f2d3 SHA512 0901537de977ad940c61ebc175e4faa6d934750fe12f066abf8a2d0881fd62aecf0f5cfaca6b0ee55453814de0a160d75f1e8960ef98f630eaa9994e6f1a9d8f WHIRLPOOL a37b6bbbaca9cb43602bb570686cc424a86ff5f4f4b9eec140bc43e14893a833cad5e0ceee581a66467a46ca4b0f6ccbf04786268e3c0b66ccfdf18e82ea8c60
+DIST lcdtest-1.18.tar.gz 26886 SHA256 f0b3fa9c5a4bc86eb2713f85f422d328a673ca8f541a6403bfe156afd631200e SHA512 74b0739c5dcc5ff9307ca526b4a6bbd92d6e58a83ceeed5a37a4064e3e4ed0cbdfe7a2a70cd56ba1a7305c3fd72510e10a02098aab11828062a3999cac944ab7 WHIRLPOOL 96abd5864323c45aa2ee6927f96c7f9e401a0007dd6361ffbc14d6609ff75cc55ec2ec93782c732aca6aade645dd3ee94ec49996bf88975fa6bd82fe6106e120
+EBUILD lcdtest-1.18.ebuild 1102 SHA256 3d24f32afb8b0c8d0041cf80ee44a867e486d91ed862fe7ba509d50f885213d4 SHA512 14e5a071eb45dbc0289ecad05bce6ccf7d1590437e58d1180bee11cdb76f5aaf513eaea21897199793df91e5a18c4f0770f56718b17a5ef87eb1fe06f5ffd555 WHIRLPOOL 4be2e8a95ac358e7ccf3d689f1bdbc2859811ebffb527981c18d2fae3f56fc3f27092ff2f46b55117389c5cf36dba6dcb18c289205b7f98ce8e82ce562f3490b
+MISC ChangeLog 2956 SHA256 66561cef42650ac66c76362b60b70fae20d06a96e6348e8d48746f6a4cf84a83 SHA512 6cb746424de59c2e5bdd22978595554733a9871f84b9e4ac3fc242b3171b52bc4082e9fc2be77856d5da440f689810c98eee83330903c0222e95c4e9948cf8d1 WHIRLPOOL 8a204f42cafc0aaafe664b4003a35fda16726d8dbcec3d1168bfd086dda5f1efc2a57cf5c3bad789a09fb808457813d99ddc91269282b38a8b720ed67335af41
+MISC ChangeLog-2015 996 SHA256 9615e52e378cf0a60764fc92fde288bd8f4ead504d29cfa30fcdcc86346732e8 SHA512 e12815a729a921425d8208e2b0879c76b9dc6fcc08d12a284e72a800ebf19bdfc59d040b26e275e1b1e41c13dac18e37e0e54eda071eb8ec643a2725c7359085 WHIRLPOOL c35c55c785fd26fcd1cd5d35473b8d87dbfdf5517f7ce2cb7b0b6259aec5352156796151f64e986689f83fc7c6983311931763b4f843ed9181557fcaa4e03108
+MISC metadata.xml 330 SHA256 da90112f2bba96098e9dbd0c7d785494b251a43ba360aebbb7a672cf5041517f SHA512 a7b0f31767ddd2a38acc2af4700f6129e6a78553f6bee63827d7706064570dccd5e5bf48b407b9e534bef4bbc6b384c326a79121079e68d25e3494601b3b0e1b WHIRLPOOL 8bbedca7137a6fd099bc66ec092ce47e34807cebb02a98101267b5156bcae7fce17a715bd7db346282b80c83b97d2ec61ded07e3fa1a14bb205737f528da6bc0
diff --git a/sys-apps/lcdtest/files/1.18-build-system.patch b/sys-apps/lcdtest/files/1.18-build-system.patch
new file mode 100644
index 000000000000..429067259c54
--- /dev/null
+++ b/sys-apps/lcdtest/files/1.18-build-system.patch
@@ -0,0 +1,62 @@
+diff -uNr lcdtest-1.18.ORIG/SConstruct lcdtest-1.18/SConstruct
+--- lcdtest-1.18.ORIG/SConstruct 2013-04-17 14:32:37.735358663 +0100
++++ lcdtest-1.18/SConstruct 2013-04-17 14:33:52.706359788 +0100
+@@ -119,10 +119,10 @@
+ # code
+ #-----------------------------------------------------------------------------
+
+-build_dir = 'build/'
++variant_dir = 'build/'
+
+ SConscript ('src/SConscript',
+- build_dir = build_dir,
++ variant_dir = variant_dir,
+ duplicate = 0,
+ exports = {'env' : env})
+
+@@ -137,7 +137,7 @@
+ #-----------------------------------------------------------------------------
+
+ SConscript ('desktop/SConscript',
+- build_dir = build_dir + '/desktop',
++ variant_dir = variant_dir + '/desktop',
+ duplicate = 0)
+
+ #-----------------------------------------------------------------------------
+diff -uNr lcdtest-1.18.ORIG/src/SConscript lcdtest-1.18/src/SConscript
+--- lcdtest-1.18.ORIG/src/SConscript 2013-04-17 14:32:37.734358663 +0100
++++ lcdtest-1.18/src/SConscript 2013-04-17 14:32:54.194358910 +0100
+@@ -17,6 +17,7 @@
+ # along with this program. If not, see see <http://www.gnu.org/licenses/>.
+
+ import os
++import SCons.Util
+
+ Import('env')
+
+@@ -29,13 +30,18 @@
+
+ objs = [env.Object(src) for src in srcs]
+
+-# respect the environment CFLAGS if given
+-if 'CFLAGS' in ARGUMENTS:
+- env.MergeFlags (ARGUMENTS ['CFLAGS'])
+-elif 'CFLAGS' in os.environ:
+- env.MergeFlags (os.environ ['CFLAGS'])
+-else:
+- env.Append (CCFLAGS = ['-g', '-Wall', '-Wextra'])
++# respect the environments flags if given
++
++if os.environ.has_key('CC'):
++ env['CC'] = os.environ['CC']
++if os.environ.has_key('CFLAGS'):
++ env['CCFLAGS'] += SCons.Util.CLVar(os.environ['CFLAGS'])
++if os.environ.has_key('CXX'):
++ env['CXX'] = os.environ['CXX']
++if os.environ.has_key('CXXFLAGS'):
++ env['CXXFLAGS'] += SCons.Util.CLVar(os.environ['CXXFLAGS'])
++if os.environ.has_key('LDFLAGS'):
++ env['LINKFLAGS'] += SCons.Util.CLVar(os.environ['LDFLAGS'])
+
+ env.Append (LIBS = ['SDL', 'SDL_image', 'SDL_ttf']);
+
diff --git a/sys-apps/lcdtest/lcdtest-1.18.ebuild b/sys-apps/lcdtest/lcdtest-1.18.ebuild
new file mode 100644
index 000000000000..4b5876b1bab5
--- /dev/null
+++ b/sys-apps/lcdtest/lcdtest-1.18.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit scons-utils eutils toolchain-funcs gnome2-utils
+
+DESCRIPTION="Displays test patterns to spot dead/hot pixels on LCD screens"
+HOMEPAGE="http://www.brouhaha.com/~eric/software/lcdtest/"
+SRC_URI="http://www.brouhaha.com/~eric/software/lcdtest/download/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+ >=media-libs/libsdl-1.2.7-r2[X,video]
+ >=media-libs/sdl-image-1.2.3-r1
+ >=media-libs/sdl-ttf-2.0.9
+"
+RDEPEND="${DEPEND}
+ media-fonts/liberation-fonts
+"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PV}-build-system.patch"
+ epatch_user
+ sed -i -e \
+ "s|/usr/share/fonts/liberation/|/usr/share/fonts/liberation-fonts/|" \
+ src/lcdtest.c || die
+}
+
+src_configure() {
+ tc-export CC
+ myesconsargs=(
+ --prefix="${EPREFIX}/usr"
+ )
+}
+
+src_compile() {
+ escons
+}
+
+src_install() {
+ escons --buildroot="${D}" install
+ dodoc README
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/sys-apps/lcdtest/metadata.xml b/sys-apps/lcdtest/metadata.xml
new file mode 100644
index 000000000000..f35b285c1eee
--- /dev/null
+++ b/sys-apps/lcdtest/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>chainsaw@gentoo.org</email>
+</maintainer>
+<maintainer type="project">
+ <email>base-system@gentoo.org</email>
+ <name>Gentoo Base System</name>
+</maintainer>
+</pkgmetadata>