From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 40012138661 for ; Thu, 24 Jan 2013 20:03:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3566221C012; Thu, 24 Jan 2013 20:03:00 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B59D721C012 for ; Thu, 24 Jan 2013 20:02:59 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8FAF833DB6D for ; Thu, 24 Jan 2013 20:02:58 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 372F4E4073 for ; Thu, 24 Jan 2013 20:02:57 +0000 (UTC) From: "Michael Weber" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michael Weber" Message-ID: <1359057751.7c2981c9bff955afa21116fc940b696fc253fbea.xmw@gentoo> Subject: [gentoo-commits] dev/xmw:master commit in: media-gfx/LightZone/ X-VCS-Repository: dev/xmw X-VCS-Files: media-gfx/LightZone/ChangeLog media-gfx/LightZone/LightZone-9999.ebuild media-gfx/LightZone/metadata.xml X-VCS-Directories: media-gfx/LightZone/ X-VCS-Committer: xmw X-VCS-Committer-Name: Michael Weber X-VCS-Revision: 7c2981c9bff955afa21116fc940b696fc253fbea X-VCS-Branch: master Date: Thu, 24 Jan 2013 20:02:57 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: ce992248-aa70-46bf-af57-b39abceedba3 X-Archives-Hash: bec0ebc743c8b6ebf693eb7760acaa0e commit: 7c2981c9bff955afa21116fc940b696fc253fbea Author: Michael Weber gentoo org> AuthorDate: Thu Jan 24 20:02:31 2013 +0000 Commit: Michael Weber gentoo org> CommitDate: Thu Jan 24 20:02:31 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=dev/xmw.git;a=commit;h=7c2981c9 Initial import (thanks to all on bug 339761) Package-Manager: portage-2.2.0_alpha159 Manifest-Sign-Key: 62EEF090 --- media-gfx/LightZone/ChangeLog | 10 +++ media-gfx/LightZone/LightZone-9999.ebuild | 93 +++++++++++++++++++++++++++++ media-gfx/LightZone/metadata.xml | 9 +++ 3 files changed, 112 insertions(+), 0 deletions(-) diff --git a/media-gfx/LightZone/ChangeLog b/media-gfx/LightZone/ChangeLog new file mode 100644 index 0000000..0f4ebee --- /dev/null +++ b/media-gfx/LightZone/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for media-gfx/LightZone +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*LightZone-9999 (24 Jan 2013) + + 24 Jan 2013; Michael Weber +LightZone-9999.ebuild, + +metadata.xml: + Initial import (thanks to all on bug 339761) + diff --git a/media-gfx/LightZone/LightZone-9999.ebuild b/media-gfx/LightZone/LightZone-9999.ebuild new file mode 100644 index 0000000..d5cbe9d --- /dev/null +++ b/media-gfx/LightZone/LightZone-9999.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 + +JAVA_PKG_WANT_BUILD_VM="sun-jdk-1.6" +JAVA_PKG_WANT_SOURCE="1.6" +JAVA_PKG_WANT_TARGET="1.6" + +inherit eutils flag-o-matic git-2 java-pkg-2 java-ant-2 toolchain-funcs + +DESCRIPTION="Photo editing for professional photographers who like things made simple" +HOMEPAGE="http://www.lightcrafts.com/lightzone/" +EGIT_REPO_URI="git://github.com/xmw/${PN}.git" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="dev-java/sun-jai-bin + dev-java/sun-jdk:1.6 + sys-libs/zlib" +DEPEND="${RDEPEND} + app-text/recode + app-text/htmltidy + dev-java/javahelp" + +EGIT_SOURCEDIR=${WORKDIR}/${P} +S=${WORKDIR}/${P}/linux + +#src_unpack() { +# cp -r /tmp/${PN} ${P} +#} + +src_prepare() { + #unbundle dev-java/javahelp + rm -v lib/jh.jar || die + ln -s "${EPREFIX}"/usr/share/javahelp/lib/jh.jar \ + lib/jh.jar || die + + #unbundle dev-java/sun-jai-bin + rm -v lib/{libmlib_jai.so,mlibwrapper_jai.jar} || die + + cd ../lightcrafts + rm -r coprocesses/dcraw || die + sed -e '/_mm_srai_epi64/s:^://:' \ + -i jnisrc/macstl/impl/vec_mmx.h || die + + echo """ +CC=$(tc-getCC) +CXX=$(tc-getCXX) +AR=$(tc-getAR) +PLATFORM_CFLAGS=${CFLAGS} -fPIC +PLATFORM_LDFLAGS=${LDFLAGS} -fPIC +AUTO_DEP_CC=$(tc-getCC) +PROCESSOR=gentoo +#JNI_LINUX_CFLAGS=-fPIC +#JNI_LINUX_LDFLAGS=-fPIC +SEGM_LDFLAGS=${LDFLAGS} +LCMS_LDFLAGS=${LDFLAGS} +""" >> mk/platform.mk || die +} + +src_compile() { + tc-export CC + java-pkg-2_src_compile +} + +src_install() { + doicon icons/${PN}_{16,32}.png + + java-pkg_dojar products/lightcrafts-linux.jar + java-pkg_dojar products/lightzonehelp.jar + + cd ../lightcrafts/products + java-pkg_dojar lightcrafts.jar lcjai.jar + java-pkg_doso *.so ${PN}-forkd + +# insinto ${JAVA_PKG_LIBDEST} +# insopts -m755 +# doins dcraw || die +# +# java-pkg_register-environment-variable LD_LIBRARY_PATH ${JAVA_PKG_LIBDEST} + + java-pkg_dolauncher ${PN} \ + --main com.lightcrafts.app.Application \ + --pwd ${JAVA_PKG_LIBDEST} + + make_desktop_entry ${PN} ${PN} ${PN}_32 \ + "Graphics;2DGraphics;RasterGraphics" || die +} diff --git a/media-gfx/LightZone/metadata.xml b/media-gfx/LightZone/metadata.xml new file mode 100644 index 0000000..59acc2c --- /dev/null +++ b/media-gfx/LightZone/metadata.xml @@ -0,0 +1,9 @@ + + + + +xmw@gentoo.org +Michael Weber + + +