Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 28432 - Aegis 4.11 Ebuild
Summary: Aegis 4.11 Ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Karl Trygve Kalleberg (RETIRED)
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2003-09-11 04:13 UTC by Ingo Rohlfs
Modified: 2003-11-15 19:14 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ingo Rohlfs 2003-09-11 04:13:23 UTC
New Ebuild for Aegis 4.11 
(removed these stupid "doc" deletion in 4.9 (file are needed for cgi interface))

##### EBUILD FOLOWS THIS LINE ###########
# filename : aegis-4.11.ebuild
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2

IUSE="tcltk"

S=${WORKDIR}/${P}
DESCRIPTION="A transaction based revision control system"
SRC_URI="http://aegis.sourceforge.net/${P}.tar.gz"
HOMEPAGE="http://aegis.sourceforge.net"

DEPEND="sys-libs/zlib
        sys-devel/gettext
        sys-apps/groff
        sys-devel/bison
        tcltk? ( >=dev-lang/tk-8.3 )"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 ~sparc "

src_compile() {
        # By default aegis configure puts shareable read/write files (locks etc)
        # in ${prefix}/com/aegis but the FHS says /var/lib/aegis can be shared.

        myconf="${myconf} --with-nlsdir=/usr/share/locale"

        econf \
                --sharedstatedir=/var/lib/aegis \
                ${myconf} || die "./configure failed"

        # Second ebuild causes redefined/undefined function errors
        make clean

        # not emake safe, I think
        make || die
}
src_install () {
        make RPM_BUILD_ROOT=${D} install || die

        # Alas gentoo appears to have no profile.d mechanism, so:
        rm ${D}/etc/profile.d/aegis.sh
        rm ${D}/etc/profile.d/aegis.csh
        rmdir ${D}/etc/profile.d
        rmdir ${D}/etc

        # OK so ${D}/var/lib/aegis gets UID=3, but for some
        # reason so do the files under /usr/share, even though
        # they are read-only.
        chown -R root.root ${D}/usr/share
        dodoc lib/en/*

        # Link to share dir so user has a chance of noticing it.
        dosym /usr/share/aegis /usr/share/doc/${PF}/scripts

        # Config file examples are documentation.
        mv ${D}/usr/share/aegis/config.example ${D}/usr/share/doc/${PF}/

        dodoc LICENSE BUILDING MANIFEST README
}
Comment 1 Patrick Kursawe (RETIRED) gentoo-dev 2003-09-11 07:09:44 UTC
Please attach the ebuild (or a diff) as text/plain next time.
Thanks for your contribution.
Comment 2 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2003-11-15 19:14:45 UTC
Fixed. Available in ~x86 and ~sparc as dev-util/aegis-4.11.