AG CVS ebuild

Ti Leggett leggett at mcs.anl.gov
Thu Aug 19 11:52:41 CDT 2004


Forgot to change KEYWORDS to ~x86

On Thu, 2004-08-19 at 11:46, Ti Leggett wrote:
> I've refined the 2.3 beta and the cvs ebuild. Here they are in all their
> glory. Should I send these to ag-tech as well?
> 
> On Tue, 2004-08-17 at 12:32, Ti Leggett wrote:
> > Here's an ebuild I made that will cvs co the toolkit and build from
> > that. It should go in PORTDIR_OVERLAY/ag-libs/agtk-cvs
-------------- 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-dev mailing list