summaryrefslogtreecommitdiff
path: root/media-gfx/monica
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 /media-gfx/monica
reinit the tree, so we can have metadata
Diffstat (limited to 'media-gfx/monica')
-rw-r--r--media-gfx/monica/Manifest7
-rw-r--r--media-gfx/monica/files/monica-3.6-makefile-cleanup.patch33
-rw-r--r--media-gfx/monica/files/monica-3.7-gcc44.patch11
-rw-r--r--media-gfx/monica/metadata.xml17
-rw-r--r--media-gfx/monica/monica-3.7.ebuild38
5 files changed, 106 insertions, 0 deletions
diff --git a/media-gfx/monica/Manifest b/media-gfx/monica/Manifest
new file mode 100644
index 000000000000..ff77198cb459
--- /dev/null
+++ b/media-gfx/monica/Manifest
@@ -0,0 +1,7 @@
+AUX monica-3.6-makefile-cleanup.patch 907 SHA256 cb4ac6b098360ffc8a4f926b2b8624d69257d074e5115fbb62e8a1207d9a309b SHA512 cc151e238e89db9d3873133e1a637d5e2959c2460251fe7fe8feb62ef22c64963cec5b2533607996b2cf7d33abdfd1f42a59f5a769cad0bf2194e8d751da3bf6 WHIRLPOOL 6fc00a8487297095232a1c35d8c636ec43c25d917e6bdf6a1cf0a73c3246e2525d0233d717f198b930170a833cce05924f2715f456cb833b85a6c7e0ad774121
+AUX monica-3.7-gcc44.patch 341 SHA256 b689f66cf8fffa88ccc8bcc40b3e758a40575258f98fc4097286239f65836ceb SHA512 837f3fc2c77d415067460f1aae80807daa9882b814494f2305be711db920a750ae183ec7b456527956b60ca3cf022729524990cd0febafeaab41bd1dbb080bfb WHIRLPOOL 1a1f718743d3a51458e88aa3648dd656b077091bfef451e81b830539d49497bd6e4d101103336ad0443e2b869059ca9b37e1bc5401a70432f816070fb3d5ad07
+DIST monica-3.7.tar.bz2 18330 SHA256 da0d7762f5a2eed482e8e2f87762d3ac1f013d5c99bd99b34083b69f03492036 SHA512 87565f33f3c3492b196905e5b8e17bd45a7eb8eb0a0281f02e23337eec888af82571ac6f2d229256ee97012d402b7f1b217cd56a8b87ff9c9296931bf63cb153 WHIRLPOOL 56f743cc38fdbf1c60eaeaa3098f27879d67d96e3664bd316268c13614f78149d94ebd7a0ef056aefa4a049075549367e63b4d65ae7297f22a804290432af961
+EBUILD monica-3.7.ebuild 708 SHA256 cdeef954799569f72506ff925c83ba4c36628075d9b1ab2c3525aab3888a837b SHA512 a31da9af50f86ab6e4c45a4d32008ede5d6fcb992e2fe3205e9acd0a40904cfe0d367f766b78a67f8b3c4edfabd26311eaa81e9dc1271fe938d6e6920be69d77 WHIRLPOOL cd60d3fcae31c89442042a89441c07df5fe33c459911fad7a7267fc4bf1f76a14f5df792c5c4a0c42a60b68d60bfd1f1d4bae0a5894344712c714d12892547b8
+MISC ChangeLog 2750 SHA256 33d423116a9d01cce36b6554ee7eb64f937a9777b0343feb2984f1a27fbbb203 SHA512 241ed116a850e03faf105bb23c07406be17cd59e35536717d03d39b9986e433a0aa1969a00c89473553bc9677afdaf541e15c0c8f37287379a472930e83196f6 WHIRLPOOL 755cb8366d2ff74f4f734d0222cbc2466317d0bc4b6932ca516d475cb3814cf46490e9060c42c8b83a0f02295234a99af49452d75c57c9042501e903fab247e1
+MISC ChangeLog-2015 1308 SHA256 db847e7c46892117cb89b87ce4065cd7f1a9a71bb9b66e92e2bd61ba1308a421 SHA512 b79bfde2ca2bbf73062a029b5cfcd454315daf0e10f7f823a05e150727993b3d6272218ee6eaafdca9988835c38d44bb4e66c4aa35228632ebada93c5cc4bbb7 WHIRLPOOL ce99992c7c69411d118e5501eb2dbab720a3aa4b407d7131a2858c1f2bff4a499d2ff727fd5a25de28ec469b4c7d1b20da327800a319b361bc2dbb16c4c3bd16
+MISC metadata.xml 629 SHA256 c9d0009ab6ed39f0408b832c30cdd75e0f36e4d55dcfb6e4a082e41cb4a0d1f0 SHA512 30f91e05861aa50f5d0af624459ea92cd2649fbad374bed1b0dc30c2ab2532df8bd6b27f42f23bc7e77480141bcd5760a5804c46d121b3fa1170a90fd1d0acd0 WHIRLPOOL 51375b5c7e43600f68e791de5526b36f016718af23c0246a0582d0c88eb761e32c73d5226183092d58fde6e51b39fe17310b7f5b816f83395ce6fd21f0d166d1
diff --git a/media-gfx/monica/files/monica-3.6-makefile-cleanup.patch b/media-gfx/monica/files/monica-3.6-makefile-cleanup.patch
new file mode 100644
index 000000000000..21881db24971
--- /dev/null
+++ b/media-gfx/monica/files/monica-3.6-makefile-cleanup.patch
@@ -0,0 +1,33 @@
+diff -Nuar monica-3.6.orig/Makefile monica-3.6/Makefile
+--- monica-3.6.orig/Makefile 2005-03-14 22:00:18.000000000 -0800
++++ monica-3.6/Makefile 2007-11-15 00:48:39.000000000 -0800
+@@ -2,22 +2,24 @@
+ CXX = g++
+ LINK = g++
+ CFLAGS = -Wall -O2
+-CXXFLAGS = `fltk-config --cxxflags` -Wall -O2
+-LDFLAGS = `fltk-config --ldflags`
++CXXFLAGS = -Wall -O2
++FLTK_CXXFLAGS = `fltk-config --cxxflags`
++LDFLAGS =
++FLTK_LDFLAGS = `fltk-config --ldflags`
+ TARGET = monica
+-DESTINATION = /usr/bin
++DESTINATION = $(DESTDIR)/usr/bin
+ OBJECTS = monica.o
+
+ all: $(TARGET)
+
+ $(TARGET): $(OBJECTS)
+- $(LINK) -o $(TARGET) $(OBJECTS) $(LDFLAGS)
++ $(LINK) -o $(TARGET) $(OBJECTS) $(FLTK_LDFLAGS) $(LDFLAGS)
+
+
+ monica.o: monica.cpp
+- $(CXX) -c $(CXXFLAGS) $(INCPATH) -o monica.o monica.cpp
++ $(CXX) -c $(FLTK_CXXFLAGS) $(CXXFLAGS) $(INCPATH) -o monica.o monica.cpp
+
+ clean:
+ rm -f $(OBJECTS)
+ rm -f monica
+
diff --git a/media-gfx/monica/files/monica-3.7-gcc44.patch b/media-gfx/monica/files/monica-3.7-gcc44.patch
new file mode 100644
index 000000000000..6fad87c6f86b
--- /dev/null
+++ b/media-gfx/monica/files/monica-3.7-gcc44.patch
@@ -0,0 +1,11 @@
+diff -ur monica-3.7.orig/monica.cpp monica-3.7/monica.cpp
+--- monica-3.7.orig/monica.cpp 2008-06-02 06:45:50.000000000 +0300
++++ monica-3.7/monica.cpp 2009-07-24 20:42:12.000000000 +0300
+@@ -14,6 +14,7 @@
+ #include <FL/Fl_Tooltip.H>
+ #include <FL/Fl_Pixmap.H>
+
++#include <cstdio>
+ #include <cstdlib>
+ #include <string>
+ #include <iostream>
diff --git a/media-gfx/monica/metadata.xml b/media-gfx/monica/metadata.xml
new file mode 100644
index 000000000000..272fc1e5253b
--- /dev/null
+++ b/media-gfx/monica/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>robbat2@gentoo.org</email>
+ </maintainer>
+ <longdescription>
+ Monica is a Monitor Calibration Tool.
+ An easy way to get respectable color rendetion on your screen. Especially
+ important to get a reasonable overall gamma setting, to make sure the basic
+ "brightness" of your screen jibes with what others see... (the Internet sRGB
+ standard gamma of 2.2)
+ </longdescription>
+ <upstream>
+ <remote-id type="freecode">monica</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-gfx/monica/monica-3.7.ebuild b/media-gfx/monica/monica-3.7.ebuild
new file mode 100644
index 000000000000..7afd8b96e53f
--- /dev/null
+++ b/media-gfx/monica/monica-3.7.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="Monica is a Monitor Calibration Tool"
+HOMEPAGE="http://freecode.com/projects/monica"
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+DEPEND=">=x11-libs/fltk-1.1:1"
+RDEPEND="${DEPEND}
+ x11-apps/xgamma"
+
+DOCS=( authors ChangeLog news readme )
+PATCHES=(
+ "${FILESDIR}"/${PN}-3.6-makefile-cleanup.patch
+ "${FILESDIR}"/${P}-gcc44.patch
+)
+
+src_compile() {
+ emake \
+ CXX="$(tc-getCXX)" \
+ CXXFLAGS="${CXXFLAGS}" \
+ LINK="$(tc-getCXX)" \
+ LDFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+ dobin monica
+ einstalldocs
+}