summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2010-06-20 13:35:25 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2010-06-20 13:35:25 +0000
commitaef935d7ba1f107d781807884237f0fc3a933a05 (patch)
tree85038dd463fa4876a66d5269ef3d420b021f4bdc /dev-embedded
parentRemoving postgresql-{base,server} and xen-sources masks (diff)
downloadgentoo-2-aef935d7ba1f107d781807884237f0fc3a933a05.tar.gz
gentoo-2-aef935d7ba1f107d781807884237f0fc3a933a05.tar.bz2
gentoo-2-aef935d7ba1f107d781807884237f0fc3a933a05.zip
Use xdg-open instead of hardcoding netscape, firefox or epiphany for $BROWSER.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'dev-embedded')
-rw-r--r--dev-embedded/ponyprog/ChangeLog9
-rw-r--r--dev-embedded/ponyprog/ponyprog-2.07a-r2.ebuild68
2 files changed, 76 insertions, 1 deletions
diff --git a/dev-embedded/ponyprog/ChangeLog b/dev-embedded/ponyprog/ChangeLog
index 710d95265665..ea7bfd9bb59f 100644
--- a/dev-embedded/ponyprog/ChangeLog
+++ b/dev-embedded/ponyprog/ChangeLog
@@ -1,6 +1,13 @@
# 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.24 2010/06/17 18:29:43 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-embedded/ponyprog/ChangeLog,v 1.25 2010/06/20 13:35:25 ssuominen Exp $
+
+*ponyprog-2.07a-r2 (20 Jun 2010)
+
+ 20 Jun 2010; Samuli Suominen <ssuominen@gentoo.org>
+ +ponyprog-2.07a-r2.ebuild:
+ Use xdg-open instead of hardcoding netscape, firefox or epiphany for
+ $BROWSER.
17 Jun 2010; Samuli Suominen <ssuominen@gentoo.org>
ponyprog-2.07a-r1.ebuild, +files/ponyprog-2.07a-build.patch:
diff --git a/dev-embedded/ponyprog/ponyprog-2.07a-r2.ebuild b/dev-embedded/ponyprog/ponyprog-2.07a-r2.ebuild
new file mode 100644
index 000000000000..b9f39f7f6922
--- /dev/null
+++ b/dev-embedded/ponyprog/ponyprog-2.07a-r2.ebuild
@@ -0,0 +1,68 @@
+# 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-r2.ebuild,v 1.1 2010/06/20 13:35:25 ssuominen Exp $
+
+EAPI="3"
+
+inherit eutils toolchain-funcs
+
+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=""
+
+RDEPEND="x11-libs/libXaw
+ x11-libs/libXmu
+ x11-libs/libXt
+ x11-libs/libXext
+ x11-libs/libX11
+ x11-misc/xdg-utils"
+DEPEND="${RDEPEND}
+ || ( media-gfx/graphicsmagick[imagemagick] media-gfx/imagemagick )"
+
+S="${WORKDIR}/PonyProg2000-${PV}"
+
+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 -i -e 's/netscape/xdg-open/' e2cmdw.cpp || die
+
+ convert ponyprog.ico ponyprog.png
+
+ epatch "${FILESDIR}"/${P}-gcc43.patch \
+ "${FILESDIR}"/${P}-build.patch
+}
+
+src_compile() {
+ tc-export CC CXX
+
+ # 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."
+}