[AG-TECH] New agtk ebuilds

Ti Leggett leggett at mcs.anl.gov
Fri Aug 20 10:25:29 CDT 2004


We've updated the agtk gentoo ebuild and also create a new cvs ebuild.
The cvs ebuild will do a cvs checkout and build the package from that.
It should be a very helpful addition to those of you like bleeding edge
constantly.

The 2.3_beta ebuild should live in $PORTDIR_OVERLAY/ag-libs/agtk
and the cvs ebuild should live in $PORTDIR_OVERLAY/ag-libs/agtk-cvs

Notice that these are separate packages and you can't have them both
installed at the same time.

Before you can use them you'll need to do either:

ebuild $PORTDIR_OVERLAY/ag-libs/agtk/agtk-2.3_beta1-r1.ebuild digest

or 

ebuild $PORTDIR_OVERLAY/ag-libs/agtk-cvs/agtk-cvs-2.3.ebuild digest

Please let us know if you have any problems or feedback.
-------------- next part --------------
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils distutils

DESCRIPTION="The Access Grid Toolkit"
HOMEPAGE="http://www.mcs.anl.gov/fl/research/accessgrid/"
SRC_URI="http://www.mcs.anl.gov/fl/research/accessgrid/software/releases/${PV}/source/${P}.tar.bz2"
LICENSE="AGTPL"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND=">=python-2.3
	>=globus-client/globus-data-management-client-2.4.3
	>=pyglobus-0.9.7
	>=soappy-0.11.4
	>=pyOpenSSL_AG-0.5.1
	>=wxGTK-2.4.2
	>=wxpython-2.4.2.4
    >=xawtv-3.86
    >=ag-media/rat-4.2.22
    >=ag-media/vic-1.1.13
	>=app-arch/unzip-5.50-r2
	>=app-arch/zip-2.3-r2
	!ag-libs/agtk-cvs"

src_compile() {
	epatch ${FILESDIR}/Config.py-2.3-beta1.patch
	distutils_src_compile
        echo "--- Building QuickBridge" ${WORKDIR}/${P}/services/network/QuickBridge
        pushd ${S}/services/network/QuickBridge
        echo " - list files"
        ls
        gcc -O -o QuickBridge QuickBridge.c
        popd
}

src_install() {
        
	${python} setup.py install --root=${D} --no-compile
	rm -rf ${D}/usr/bin ${D}/usr/etc/init.d ${D}/usr/share/AccessGrid ${D}/usr/share/applnk ${D}/usr/share/gnome
	mv ${D}/usr/etc ${D}/etc
	dodoc COPYING.txt ChangeLog README README-developers TODO
	mv ${D}/usr/share/doc/AccessGrid/Documentation ${D}/usr/share/doc/${PF}/.
	rm -rf ${D}/usr/share/doc/AccessGrid
	install -d ${D}/etc/AccessGrid/Services
	install -d ${D}/etc/AccessGrid/Logs
        echo "--- Building node service packages"
        mkdir ${D}/etc/AccessGrid/NodeServices
        pushd ${S}/services/node
        echo " - list files"
        ls
        echo "  - VideoService"
        cp /usr/bin/vic .
        zip ${D}/etc/AccessGrid/NodeServices/VideoService.zip VideoService.{py,svc} vic
        unzip -l ${D}/etc/AccessGrid/NodeServices/VideoService.zip
        echo "  - VideoProducerService"
        zip ${D}/etc/AccessGrid/NodeServices/VideoProducerService.zip VideoProducerService.{py,svc} vic
        unzip -l ${D}/etc/AccessGrid/NodeServices/VideoProducerService.zip
        echo "  - VideoConsumerService"
        zip ${D}/etc/AccessGrid/NodeServices/VideoConsumerService.zip VideoConsumerService.{py,svc} vic
        unzip -l ${D}/etc/AccessGrid/NodeServices/VideoConsumerService.zip
        echo "  - AudioService"
        cp /usr/bin/rat* .
        mv rat-4.2.22-kill rat-kill
        zip ${D}/etc/AccessGrid/NodeServices/AudioService.zip AudioService.{py,svc} rat rat-4.2.22 rat-4.2.22-media rat-4.2.22-ui rat-kill
        unzip -l ${D}/etc/AccessGrid/NodeServices/AudioService.zip
        popd
        echo "--- Copying shared application packages"
	cp -a ${FILESDIR}/SharedApplications ${D}/etc/AccessGrid
        echo "--- Copying QuickBridge"
        ls ${S}/services/network/QuickBridge/QuickBridge
        mkdir ${D}/usr/bin
        cp -a -v ${S}/services/network/QuickBridge/QuickBridge ${D}/usr/bin
        echo "--- Configuring executable scripts"
	dobin   bin/AGNodeService.py            \
            bin/AGServiceManager.py             \
            bin/BridgeServer.py                 \
            bin/CertificateManager.py           \
            bin/CertificateRequestTool.py       \
            tools/GoToVenue.py                  \
            bin/NodeManagement.py               \
            bin/NodeSetupWizard.py              \
            bin/VenueClient.py                  \
            bin/VenueManagement.py              \
            bin/VenueServer.py                  \
            bin/agpm.py                         \
            bin/certmgr.py                      
}
-------------- next part --------------
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: $

ECVS_SERVER="cvs.mcs.anl.gov:/cvs/fl"
ECVS_AUTH="pserver"
ECVS_USER="anonymous"
ECVS_PASS=""
ECVS_MODULE="AccessGrid"

inherit cvs eutils distutils

DESCRIPTION="The Access Grid Toolkit"
HOMEPAGE="http://www.mcs.anl.gov/fl/research/accessgrid/"
SRC_URI=""
LICENSE="AGTPL"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND=">=python-2.3
	>=globus-client/globus-data-management-client-2.4.3
	>=pyglobus-0.9.7
	>=soappy-0.11.4
	>=pyOpenSSL_AG-0.5.1
	>=wxGTK-2.4.2
	>=wxpython-2.4.2.4
	>=xawtv-3.86
	>=ag-media/rat-4.2.22
	>=ag-media/vic-1.1.13
	>=app-arch/unzip-5.50-r2
	>=app-arch/zip-2.3-r2
	!ag-libs/agtk"

S=${WORKDIR}/${ECVS_MODULE}

src_compile() {
	epatch ${FILESDIR}/Config.py-2.3-beta1.patch
	distutils_src_compile
        echo "--- Building QuickBridge" ${WORKDIR}/${P}/services/network/QuickBridge
        pushd ${S}/services/network/QuickBridge
        echo " - list files"
        ls
        gcc -O -o QuickBridge QuickBridge.c
        popd
}

src_install() {
    ${python} setup.py install --root=${D} --no-compile
    rm -rf ${D}/usr/bin ${D}/usr/etc/init.d ${D}/usr/share/AccessGrid ${D}/usr/share/applnk ${D}/usr/share/gnome
    mv ${D}/usr/etc ${D}/etc
    dodoc COPYING.txt ChangeLog README README-developers TODO
    mv ${D}/usr/share/doc/AccessGrid/Documentation ${D}/usr/share/doc/${PF}/.
    rm -rf ${D}/usr/share/doc/AccessGrid
    install -d ${D}/etc/AccessGrid/Services
    install -d ${D}/etc/AccessGrid/Logs
        echo "--- Building node service packages"
        mkdir ${D}/etc/AccessGrid/NodeServices
        pushd ${S}/services/node
        echo " - list files"
        ls
        echo "  - VideoService"
        cp /usr/bin/vic .
        zip ${D}/etc/AccessGrid/NodeServices/VideoService.zip VideoService.{py,svc} vic
        unzip -l ${D}/etc/AccessGrid/NodeServices/VideoService.zip
        echo "  - VideoProducerService"
        zip ${D}/etc/AccessGrid/NodeServices/VideoProducerService.zip VideoProducerService.{py,svc} vic
        unzip -l ${D}/etc/AccessGrid/NodeServices/VideoProducerService.zip
        echo "  - VideoConsumerService"
        zip ${D}/etc/AccessGrid/NodeServices/VideoConsumerService.zip VideoConsumerService.{py,svc} vic
        unzip -l ${D}/etc/AccessGrid/NodeServices/VideoConsumerService.zip
        echo "  - AudioService"
        cp /usr/bin/rat* .
        mv rat-4.2.22-kill rat-kill
        zip ${D}/etc/AccessGrid/NodeServices/AudioService.zip AudioService.{py,svc} rat rat-4.2.22 rat-4.2.22-media rat-4.2.22-ui rat-kill
        unzip -l ${D}/etc/AccessGrid/NodeServices/AudioService.zip
        popd
        echo "--- Copying shared application packages"
    cp -a ${FILESDIR}/SharedApplications ${D}/etc/AccessGrid
        echo "--- Copying QuickBridge"
        ls ${S}/services/network/QuickBridge/QuickBridge
        mkdir ${D}/usr/bin
        cp -a -v ${S}/services/network/QuickBridge/QuickBridge ${D}/usr/bin
        echo "--- Configuring executable scripts"
    dobin   bin/AGNodeService.py            \
            bin/AGServiceManager.py             \
            bin/BridgeServer.py                 \
            bin/CertificateManager.py           \
            bin/CertificateRequestTool.py       \
            tools/GoToVenue.py                  \
            bin/NodeManagement.py               \
            bin/NodeSetupWizard.py              \
            bin/VenueClient.py                  \
            bin/VenueManagement.py              \
            bin/VenueServer.py                  \
            bin/agpm.py                         \
            bin/certmgr.py
}


More information about the ag-tech mailing list