summaryrefslogtreecommitdiff
path: root/x11-misc/grabc
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/grabc
reinit the tree, so we can have metadata
Diffstat (limited to 'x11-misc/grabc')
-rw-r--r--x11-misc/grabc/Manifest6
-rw-r--r--x11-misc/grabc/files/grabc-1.1-makefile.patch37
-rw-r--r--x11-misc/grabc/grabc-1.1-r2.ebuild31
-rw-r--r--x11-misc/grabc/metadata.xml8
4 files changed, 82 insertions, 0 deletions
diff --git a/x11-misc/grabc/Manifest b/x11-misc/grabc/Manifest
new file mode 100644
index 000000000000..b46bcb04b4d4
--- /dev/null
+++ b/x11-misc/grabc/Manifest
@@ -0,0 +1,6 @@
+AUX grabc-1.1-makefile.patch 893 SHA256 81f4a7c9771c46e16c1639f8bcce96e2f6364f76e1cb788f506a3354d72b2100 SHA512 dabd881ff69c44550337ba75b1ea42490777cb6f5d7759da095e5445d68c3abab1b02601e64064d4b558c1136f7e777d7966e17ca37d9ec2f8257199416c559e WHIRLPOOL 48935d2afca6930598a65155166a1042d4404f49af5fe50b6771e2e61722e7bc0e198f6b1d60d8ee423304e143a0a201e8ee58ff58a44e4d39d6fe48f259f9a5
+DIST grabc1.1.tar.gz 2983 SHA256 f0492a8ea33b46a16bdb94644420f54724e31c4436e4cd77937a30b2de3bb00e SHA512 9a2416fd0cda7bd6fb65092572e6ba932eeac33a8534efe53be8f4bac3576884003dd50075363acd2d8466a406ba8799a0cef51086700269728894913a748aeb WHIRLPOOL fd4f9630e98556ff9c5dfced5cc2cf72b794d7d5a00f2ff16757725f153f92c4bac12cba1265af1616e6fc40a3f93300eff2c73bd36f6a7d395860ba19ba0f45
+EBUILD grabc-1.1-r2.ebuild 662 SHA256 946fc955798272f6650b84319cf0de0785755b5fc25f0bdb2a8c874ba3005ebf SHA512 1116c337c9fd81c5ed4dbbe534d1b9ed1253d3e97c21b2c4c4f1aa73f4aa15c1f66141e0ddfe07a88e137fdaf530d477485eb0a71c0d0976053287bab3c515d1 WHIRLPOOL 0a9440aea2fcc264417475b07312b4cdda30c5bfd1801f352a6fb01acd5984160327d0fca0bd198cbb08152c8819795f8055ae3a0d887b7a0155bef6df1edcfc
+MISC ChangeLog 2456 SHA256 401bc9fadaae740e70bbd752511ade5f18eee20a96ec6e43698263429d48b798 SHA512 c5741e6963d2c638efa87f2a7943d7fac0081256e218295f0e2b2e7b45207a01851bb04ee25e2df77dec2d4b88824a387e703a33e382e70a26d557719468e980 WHIRLPOOL b78c10e46c7a2e3a14f9e5cad81afec7b5c0424d7fe3581ad65e7fe4acf65dc8e57d99b795417a49e4b1d384a52e9a1be11887c0a66bcdb3cd74f3b0fd2d4b84
+MISC ChangeLog-2015 1898 SHA256 9be66bcb4b8a79a73e59ef5e15b2d8b397a00613397841c115bba22d42b52d3b SHA512 6e2daa4ca1ade59d599007cece0a7f88c6b24ef3db3da3df3232951364eb43195d1410f28a87af17534a20702d6c2b5057a2a6af5d665d329e8a9d0fad5e305c WHIRLPOOL e6dd91fc0cd44991751f84fb0fa389306d2ee444b7b4daf462d8ad1e172a416ab6f9749d76098f7576299c06d4d7ba9175b61bc40045a2a16f8c4b72a62bac8b
+MISC metadata.xml 276 SHA256 437f3dba7deca9da3b3f8ecda9bb5e97253de0412cbb3095d876f39140f3ea98 SHA512 3497963f4fb51bb32521472b54a995091cb457d2cda65c786bd4b46e5af325caf8f6d5c969cefa0c09fe717df09fb015ec59b52f5571c3b2b9d4ea33e6c843ab WHIRLPOOL 8550fd604cf609511bf7c34245ebd6682dd6d058d8cbfa099a77c94d1afcf592909eb679a28a0806957ac0949c6cff350675e0182303ec5890a5e2c2c26d29c5
diff --git a/x11-misc/grabc/files/grabc-1.1-makefile.patch b/x11-misc/grabc/files/grabc-1.1-makefile.patch
new file mode 100644
index 000000000000..4815ae5675c5
--- /dev/null
+++ b/x11-misc/grabc/files/grabc-1.1-makefile.patch
@@ -0,0 +1,37 @@
+--- grabc1.1/Makefile.org 1997-03-17 06:51:39.000000000 +0100
++++ grabc1.1/Makefile 2010-02-08 12:18:34.000000000 +0100
+@@ -2,17 +2,15 @@
+ # Makefile automatically generated by genmake 1.0, Mar-16-97
+ # genmake 1.0 by ma_muquit@fccc.edu, RCS
+ ##
+-CC= cc
+ DEFS=
+ PROGNAME= grabc
+-LIBS= -L/usr/X11R6/lib -lX11
++LIBS= $(shell pkg-config --libs x11)
+
+ INCLUDES= -I.
+
+-# replace -O with -g in order to debug
++# replace -O2 -pipe -Wall -march=athlon-xp with -g in order to debug
+
+ DEFINES= $(INCLUDES) $(DEFS) -D__USE_FIXED_PROTOTYPES__ -DSYS_UNIX=1
+-CFLAGS= -O $(DEFINES)
+
+ SRCS = grabc.c
+
+@@ -20,12 +18,12 @@
+
+ .c.o:
+ rm -f $@
+- $(CC) $(CFLAGS) -c $*.c
++ $(CC) $(CFLAGS) $(DEFINES) -c $*.c
+
+ all: $(PROGNAME)
+
+ $(PROGNAME) : $(OBJS)
+- $(CC) $(CFLAGS) -o $(PROGNAME) $(OBJS) $(LIBS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $(PROGNAME) $(OBJS) $(LIBS)
+
+ clean:
+ rm -f $(OBJS) $(PROGNAME) core
diff --git a/x11-misc/grabc/grabc-1.1-r2.ebuild b/x11-misc/grabc/grabc-1.1-r2.ebuild
new file mode 100644
index 000000000000..fc963dc09905
--- /dev/null
+++ b/x11-misc/grabc/grabc-1.1-r2.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit toolchain-funcs
+
+DESCRIPTION="Identify color of a pixel on the screen by clicking on a pixel on the screen"
+HOMEPAGE="https://www.muquit.com/muquit/software/grabc/grabc.html"
+SRC_URI="https://www.muquit.com/muquit/software/${PN}/${PN}${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 x86"
+IUSE=""
+
+RDEPEND="x11-libs/libX11"
+DEPEND="${RDEPEND}
+ x11-proto/xproto"
+
+S="${WORKDIR}/${PN}${PV}"
+PATCHES=( "${FILESDIR}"/${P}-makefile.patch )
+
+src_compile() {
+ tc-export CC
+ default
+}
+
+src_install() {
+ dobin grabc
+ einstalldocs
+}
diff --git a/x11-misc/grabc/metadata.xml b/x11-misc/grabc/metadata.xml
new file mode 100644
index 000000000000..2ba8e9e851e4
--- /dev/null
+++ b/x11-misc/grabc/metadata.xml
@@ -0,0 +1,8 @@
+<?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>
+</pkgmetadata>