Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[ebuild] Wing IDE Professional (WingIDE Pro) ebuild
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Seclorum
n00b
n00b


Joined: 05 Feb 2007
Posts: 8
Location: Russia

PostPosted: Fri Nov 30, 2007 7:13 am    Post subject: [ebuild] Wing IDE Professional (WingIDE Pro) ebuild Reply with quote

cat dev-util/wingide/wingide-3.0.2.1.ebuild

Code:
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: Ilya Kashirin (seclorum@seclorum.ru)

inherit eutils rpm versionator

MY_PV=$(replace_version_separator 3 '-')
MY_PV1=${PV%.*}
MY_PV2=${PV%.*.*}
MY_PV3=${PV%.*.*.*}

DESCRIPTION="Wing IDE is advanced Python IDE."
HOMEPAGE="http://www.wingide.com"
SRC_URI="http://wingware.com/pub/wingide/${MY_PV1}/wingide${MY_PV2}-${MY_PV}.i386.rpm"

LICENSE="WingIDE"
SLOT="${MY_PV3}"
KEYWORDS="~x86"

DEPEND=">=dev-lang/python-2.0.0"

WINGHOME="/opt/wingide${MY_PV3}"
src_unpack () {
   rpm_src_unpack ${A}
   sed -i -e "s:/usr/lib/wingide${MY_PV2}:${WINGHOME}:g" usr/lib/wingide${MY_PV2}/wing
}


src_compile() {
   echo "Nothing to compile."
}

src_install() {
   dodir ${WINGHOME}
   cp -R ${WORKDIR}/usr/lib/wingide${MY_PV2}/* ${D}/${WINGHOME}/ || die "Install failed!"
   dosym ${WINGHOME}/wing /usr/bin/wingide${MY_PV3}
   
}

pkg_postinst() {
   einfo ""
   einfo "To run Wing IDE Professional use wingide${MY_PV3} command"
   einfo ""
   einfo "To install fixes from Wing\`s developers run wingide${MY_PV3} under root"
   einfo "and select in menu Help-Check for updates"
   einfo ""
}
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum