diff options
author | Denis Dupeyron <calchan@gentoo.org> | 2010-03-21 21:45:08 +0000 |
---|---|---|
committer | Denis Dupeyron <calchan@gentoo.org> | 2010-03-21 21:45:08 +0000 |
commit | 27e625ea3439d31956765dd4cec11903578929dc (patch) | |
tree | dfa714e704ce0baf03a708764df24dfac6ed1798 /dev-embedded | |
parent | Add ganyremote. Initial ebuild submitted by Norman Jonas <bugs.gentoo.org_4@d... (diff) | |
download | gentoo-2-27e625ea3439d31956765dd4cec11903578929dc.tar.gz gentoo-2-27e625ea3439d31956765dd4cec11903578929dc.tar.bz2 gentoo-2-27e625ea3439d31956765dd4cec11903578929dc.zip |
Removed seamonkey dependency (bug #300418). Added graphicsmagick as possible replacement to imagemagick.
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Diffstat (limited to 'dev-embedded')
-rw-r--r-- | dev-embedded/ponyprog/ChangeLog | 8 | ||||
-rw-r--r-- | dev-embedded/ponyprog/ponyprog-2.07a-r1.ebuild | 80 |
2 files changed, 87 insertions, 1 deletions
diff --git a/dev-embedded/ponyprog/ChangeLog b/dev-embedded/ponyprog/ChangeLog index f6db73477b08..4e661464ddff 100644 --- a/dev-embedded/ponyprog/ChangeLog +++ b/dev-embedded/ponyprog/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-embedded/ponyprog # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-embedded/ponyprog/ChangeLog,v 1.19 2010/01/01 17:58:10 scarabeus Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-embedded/ponyprog/ChangeLog,v 1.20 2010/03/21 21:45:08 calchan Exp $ + +*ponyprog-2.07a-r1 (21 Mar 2010) + + 21 Mar 2010; <calchan@gentoo.org> +ponyprog-2.07a-r1.ebuild: + Removed seamonkey dependency (bug #300418). Added graphicsmagick as + possible replacement to imagemagick. 01 Jan 2010; Tomáš Chvátal <scarabeus@gentoo.org> ponyprog-2.07a.ebuild: diff --git a/dev-embedded/ponyprog/ponyprog-2.07a-r1.ebuild b/dev-embedded/ponyprog/ponyprog-2.07a-r1.ebuild new file mode 100644 index 000000000000..e44dd1f31181 --- /dev/null +++ b/dev-embedded/ponyprog/ponyprog-2.07a-r1.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-embedded/ponyprog/ponyprog-2.07a-r1.ebuild,v 1.1 2010/03/21 21:45:08 calchan Exp $ + +EAPI="3" + +inherit eutils + +DESCRIPTION="Serial device programmer" +HOMEPAGE="http://www.lancos.com/ppwin95.html" +SRC_URI="mirror://sourceforge/${PN}/PonyProg2000-${PV}.tar.gz" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="epiphany firefox" + +RDEPEND="x11-libs/libXaw + x11-libs/libXmu + x11-libs/libXt + x11-libs/libXext + x11-libs/libX11 + epiphany? ( www-client/epiphany ) + firefox? ( || ( www-client/mozilla-firefox www-client/firefox-bin ) )" +DEPEND="${RDEPEND} + || ( media-gfx/graphicsmagick[imagemagick] media-gfx/imagemagick )" + +S="${WORKDIR}/PonyProg2000-${PV}" + +pkg_setup() { + if (use epiphany && use firefox) ; then + die "Only one of epiphany or firefox can be in USE." + fi +} + +src_prepare() { + sed -i \ + -e "s:\$(HOME)/Progetti/PonyProg_Sourceforge/v:${S}/v:" \ + -e 's/\-O2//' \ + v/Config.mk || die "sed failed" + + sed -i -e 's/<asm\/io.h>/<sys\/io.h>/' *.cpp || die "sed failed" + + if use epiphany ; then + sed -i -e 's/netscape/epiphany/' e2cmdw.cpp + fi + if use firefox ; then + sed -i -e 's/netscape/firefox/' e2cmdw.cpp + fi + if use seamonkey ; then + sed -i -e 's/netscape/seamonkey/' e2cmdw.cpp + fi + convert ponyprog.ico ponyprog.png + + # Fix compilation with gcc-4.3, bug #227503 + epatch "${FILESDIR}/${P}-gcc43.patch" +} + +src_compile() { + # bug #282244 + emake -j1 || die "emake failed" +} + +src_install() { + dobin bin/ponyprog2000 || die + keepdir /var/lock/uucp + fowners uucp:uucp /var/lock/uucp + fperms 755 /var/lock/uucp + doicon ponyprog.png + make_desktop_entry ponyprog2000 PonyProg2000 ponyprog +} + +pkg_postinst() { + elog "To use the COM port in user mode (not as root), you need to" + elog "be in the 'uucp' group." + elog + elog "To use the LPT port in user mode (not as root) you need a kernel with" + elog "ppdev, parport and parport_pc compiled in or as modules. You need the" + elog "rights to write to /dev/parport? devices." +} |