summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weber <xmw@gentoo.org>2012-03-09 19:26:45 +0000
committerMichael Weber <xmw@gentoo.org>2012-03-09 19:26:45 +0000
commita19b8d0d34bc11850c0f4cf923e82e7cad2d4cb4 (patch)
treeef3f33c9038c54ea528421c41e2a815000c55c6d /media-libs/oyranos
parentRestore QA_DT_HASH variable, thanks to Oschtan, bug #401297. (diff)
downloadgentoo-2-a19b8d0d34bc11850c0f4cf923e82e7cad2d4cb4.tar.gz
gentoo-2-a19b8d0d34bc11850c0f4cf923e82e7cad2d4cb4.tar.bz2
gentoo-2-a19b8d0d34bc11850c0f4cf923e82e7cad2d4cb4.zip
Version bump (thanks Andreas Sturmlechner, bug 407485)
(Portage version: 2.1.10.44/cvs/Linux x86_64)
Diffstat (limited to 'media-libs/oyranos')
-rw-r--r--media-libs/oyranos/ChangeLog8
-rw-r--r--media-libs/oyranos/files/oyranos-0.4.0-buildsystem.patch70
-rw-r--r--media-libs/oyranos/oyranos-0.4.0.ebuild81
3 files changed, 158 insertions, 1 deletions
diff --git a/media-libs/oyranos/ChangeLog b/media-libs/oyranos/ChangeLog
index 3baf004851a2..419738d3e84c 100644
--- a/media-libs/oyranos/ChangeLog
+++ b/media-libs/oyranos/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for media-libs/oyranos
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/oyranos/ChangeLog,v 1.2 2012/02/08 05:49:19 xmw Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/oyranos/ChangeLog,v 1.3 2012/03/09 19:26:45 xmw Exp $
+
+*oyranos-0.4.0 (09 Mar 2012)
+
+ 09 Mar 2012; Michael Weber <xmw@gentoo.org> +oyranos-0.4.0.ebuild,
+ +files/oyranos-0.4.0-buildsystem.patch:
+ Version bump (thanks Andreas Sturmlechner, bug 407485)
08 Feb 2012; Michael Weber <xmw@gentoo.org> oyranos-0.3.2.ebuild,
+files/oyranos-0.3.2-test.patch:
diff --git a/media-libs/oyranos/files/oyranos-0.4.0-buildsystem.patch b/media-libs/oyranos/files/oyranos-0.4.0-buildsystem.patch
new file mode 100644
index 000000000000..66f4ec1ddf2c
--- /dev/null
+++ b/media-libs/oyranos/files/oyranos-0.4.0-buildsystem.patch
@@ -0,0 +1,70 @@
+--- oyranos-0.4.0/configure
++++ oyranos-0.4.0/configure
+@@ -30,7 +30,7 @@
+ PKGC=$TARGET.pc
+ VERS_H="$TARGET"_version.h
+ zeile="$0 $@"
+-MAKEFILE_DIR=". fl_i18n libXNVCtrl yajl"; export MAKEFILE_DIR
++MAKEFILE_DIR=". fl_i18n libXNVCtrl"; export MAKEFILE_DIR
+
+ if [ `uname` = "Linux" ]; then
+ v=-v
+@@ -68,7 +68,7 @@
+ OY_DEVEL_MONTH=03
+ OYRANOS_DEVEL_MONTH=3 # numeric
+ OY_DEVEL_YEAR=2012
+-OY_GIT_MASTER="`cat $ROOT_DIR/.git/refs/heads/master`"
++OY_GIT_MASTER=""
+ time="`date +%y%m%d.%H%M%S`"
+ DATE="$OY_START_MONTH $OY_START_YEAR - $OY_DEVEL_MONTH $OY_DEVEL_YEAR"
+ VERSION=$VERSION_A.$VERSION_B.$VERSION_C
+@@ -120,7 +120,7 @@
+ fi
+ IFS=$old_IFS
+
+-STRIPOPT="sed s/-O.//"
++STRIPOPT="cat"
+
+ if [ $# -gt 0 ]; then
+ prefix=""
+--- oyranos-0.4.0/configure_tests.sh
++++ oyranos-0.4.0/configure_tests.sh
+@@ -3,7 +3,7 @@
+ set > testset.txt
+ ERROR=0
+ WARNING=0
+-STRIPOPT='s/-O.// ; s/-isysroot [[:graph:]]*// ; s/-arch ppc// ; s/-arch i386//'
++STRIPOPT='s/-isysroot [[:graph:]]*// ; s/-arch ppc// ; s/-arch i386//'
+
+ mkdir -p tests
+
+--- oyranos-0.4.0/oforms/oyranos_xforms.makefile
++++ oyranos-0.4.0/oforms/oyranos_xforms.makefile
+@@ -1,5 +1,6 @@
+ INCL = $(INCLUDE) -I../ -I./ $(DEBUG)
+-CC = gcc
++CC ?= gcc
++CXX ?= c++
+ DEBUG = -Wall -g -O0
+ LDFLAGS_ = $$LDFLAGS -L../fl_i18n
+ OY_LIBS := $(shell pkg-config oyranos libxml-2.0 --libs --cflags)
+ FLTK_FLAGS := $(shell fltk-config --ldflags --cxxflags | sed s/-O2//) -lpthread
+@@ -16,15 +17,15 @@
+
+ oyranos-xforms: $(SRCDIR)oyranos_xforms.c
+ echo "Compiling $(SRCDIR)$< + Linking $@ ..."
+- gcc -Wall -g $(CFLAGS) $(INCL) $(SRCDIR)oyranos_xforms.c -o oyranos-xforms -pedantic $(OY_FLAGS) $(LDFLAGS_)
++ $(CC) -Wall -g $(CFLAGS) $(INCL) $(SRCDIR)oyranos_xforms.c -o oyranos-xforms -pedantic $(OY_FLAGS) $(LDFLAGS_)
+
+ oyranos-xforms-modules: $(SRCDIR)oyranos_xforms_modules.c
+ echo "Compiling $(SRCDIR)$< + Linking $@ ..."
+- gcc -Wall -g $(CFLAGS) $(INCL) $< -o $@ -pedantic $(OY_FLAGS) $(LDFLAGS_)
++ $(CC) -Wall -g $(CFLAGS) $(INCL) $< -o $@ -pedantic $(OY_FLAGS) $(LDFLAGS_)
+
+ oyranos-xforms-fltk: $(SRCDIR)oyranos_xforms_fltk.cxx $(SRCDIR)oyranos_forms_fltk.cxx $(SRCDIR)oyranos_widgets_fltk.cxx $(SRCDIR)oyranos_widgets_fltk.h
+ echo "Compiling $(SRCDIR)$< + Linking $@ ..."
+- -c++ $(LDFLAGS_) -Wall -g $(CXXFLAGS) $(INCL) $(SRCDIR)oyranos_xforms_fltk.cxx -o oyranos-xforms-fltk -pedantic -loyforms_fltk -lfl_i18n $(FLTK_FLAGS) $(OY_FLAGS)
++ $(CXX) $(LDFLAGS) -Wall -g $(CXXFLAGS) $(INCL) $(SRCDIR)oyranos_xforms_fltk.cxx -o oyranos-xforms-fltk -pedantic -loyforms_fltk -lfl_i18n $(FLTK_FLAGS) $(OY_FLAGS_)
+
+
+ # Build commands and filename extensions...
diff --git a/media-libs/oyranos/oyranos-0.4.0.ebuild b/media-libs/oyranos/oyranos-0.4.0.ebuild
new file mode 100644
index 000000000000..07f6a5a7d099
--- /dev/null
+++ b/media-libs/oyranos/oyranos-0.4.0.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/oyranos/oyranos-0.4.0.ebuild,v 1.1 2012/03/09 19:26:45 xmw Exp $
+
+EAPI=4
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="colour management system allowing to share various settings across applications and services"
+HOMEPAGE="http://www.oyranos.org/"
+SRC_URI="mirror://sourceforge/oyranos/Oyranos/Oyranos%200.4/${P}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="X doc static-libs test xinerama"
+
+RDEPEND="app-admin/elektra
+ dev-libs/libxml2
+ dev-libs/yajl
+ media-gfx/exiv2
+ media-libs/lcms:0
+ media-libs/libpng:0
+ media-libs/libraw
+ >=media-libs/libXcm-0.5.0
+ X? ( x11-libs/fltk:1
+ x11-libs/libXfixes
+ x11-libs/libXrandr
+ x11-libs/libXxf86vm
+ xinerama? ( x11-libs/libXinerama ) )"
+DEPEND="${RDEPEND}
+ app-doc/doxygen
+ test? ( media-libs/icc-profiles-basiccolor-printing2009
+ media-libs/icc-profiles-openicc )"
+
+RESTRICT="test"
+
+src_prepare() {
+ einfo remove bundled elektra yajl
+ rm -rf elektra* yajl || die
+ #keep bundled libXNVCtrl
+
+ epatch "${FILESDIR}"/${P}-buildsystem.patch \
+ "${FILESDIR}"/${PN}-0.3.2-test.patch
+
+ if ! use X ; then
+ sed -e '/FLTK_GUI =/s:=.*:=:' \
+ -i makefile.in || die
+ fi
+
+ sed -e '/#include/s:alpha/oyranos_alpha.h:oyranos_alpha.h:' \
+ -i examples/libraw/oyranos_file.cpp || die
+}
+
+src_configure() {
+ tc-export CC CXX
+ econf --prefix=/usr \
+ --enable-verbose \
+ $(use_with X x) \
+ $(use_enable X libX11) \
+ $(use_enable X libXext) \
+ $(use_enable X libXrandr) \
+ $(use_enable X libXxf86vm) \
+ $(use_enable X fltk) \
+ $(use_enable static-libs static) \
+ $(use_enable xinerama libXinerama)
+}
+
+src_compile() {
+ emake all
+ use X && emake oforms
+ emake docu
+}
+
+src_install() {
+ emake DESTDIR="${D}" docdir=${EPREFIX}/usr/share/doc/${P} install-main
+
+ if ! use doc ; then
+ rm -rf "${ED}/usr/share/doc/${P}/html" || die
+ fi
+}