diff options
author | Geert Bevin <gbevin@gentoo.org> | 2002-02-26 14:41:16 +0000 |
---|---|---|
committer | Geert Bevin <gbevin@gentoo.org> | 2002-02-26 14:41:16 +0000 |
commit | 34986b8b2dee741f5cac990ae714dc0f36293425 (patch) | |
tree | 1c24102bc77387c38789f27038cb099dc524514c /dev-util/subversion | |
parent | fixed DESCRIPTION to say kde 2.2.2 not 2.2.1 (diff) | |
download | gentoo-2-34986b8b2dee741f5cac990ae714dc0f36293425.tar.gz gentoo-2-34986b8b2dee741f5cac990ae714dc0f36293425.tar.bz2 gentoo-2-34986b8b2dee741f5cac990ae714dc0f36293425.zip |
added today's snapshot
Diffstat (limited to 'dev-util/subversion')
-rw-r--r-- | dev-util/subversion/ChangeLog | 27 | ||||
-rw-r--r-- | dev-util/subversion/files/digest-subversion-0.10_pre1 | 6 | ||||
-rw-r--r-- | dev-util/subversion/subversion-0.10_pre1.ebuild | 252 |
3 files changed, 264 insertions, 21 deletions
diff --git a/dev-util/subversion/ChangeLog b/dev-util/subversion/ChangeLog index 4ec23dfa0271..136970e0ebfb 100644 --- a/dev-util/subversion/ChangeLog +++ b/dev-util/subversion/ChangeLog @@ -1,25 +1,10 @@ -# ChangeLog for <CATEGORY>/<PACKAGE_NAME> +# ChangeLog for dev-util/subversion # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL -# $Header: /var/cvsroot/gentoo-x86/dev-util/subversion/ChangeLog,v 1.1 2002/02/07 08:30:58 gbevin Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/subversion/ChangeLog,v 1.2 2002/02/26 14:41:16 gbevin Exp $ -*<PACKAGE_NAME>-<PACKAGE_VERSION>-<PACKAGE_RELEASE> (<DATE>) +*subversion-0.10_pre1 (26 Feb 2002) - 1 Feb 2002; G.Bevin <gbevin@gentoo.org> skel.ChangeLog : + 26 Feb 2002; G.Bevin <gbevin@gentoo.org> subversion-0.10_pre1.ebuild, + files/digest-subversion-0.10_pre1 : - This changelog is targetted to users. This means that the comments should be - well explained and written in clean English. - - Every new version or revision of the package has to be marked by a '*' - seperator line as above. Changements since the last revision have to be - added to the top of the file, underneath the initial copyright and cvs header - comments, in exactly the same format as this comment. - - This means that you start with header line that has the following format : - - date; your_name <your_email> changed_file1, changed_file2 : - - Below that line your explanation should follow. It has to be indented, - paragraphed and wrapped at a linewidth of 80 characters. - - Any details about what exactly changed in the code should be added as a - message when the changes are committed to cvs, not in this file. + added today's snapshot diff --git a/dev-util/subversion/files/digest-subversion-0.10_pre1 b/dev-util/subversion/files/digest-subversion-0.10_pre1 new file mode 100644 index 000000000000..3ecf0921e1b3 --- /dev/null +++ b/dev-util/subversion/files/digest-subversion-0.10_pre1 @@ -0,0 +1,6 @@ +MD5 6037a6a73a208e7357dda5e9682c7bfe apr-subversion-200202261456.tar.bz2 614171 +MD5 528c8adcd6088e8f0c93b2f82b1ff3d8 apr-util-subversion-200202261456.tar.bz2 152437 +MD5 10c84c06700d841a2f50a7e49baa742b autoconf-2.52.tar.bz2 632887 +MD5 12262c64fcd64b772e7cffad8e4d0ebc db-4.0.14.tar.gz 2701799 +MD5 8d546fa682cc887e94a6f3cbd7433631 httpd-subversion-200202261456.tar.bz2 2228156 +MD5 606c9ef35648b2c1818abbe0a4a98703 svn-200202261456.tar.bz2 3412964 diff --git a/dev-util/subversion/subversion-0.10_pre1.ebuild b/dev-util/subversion/subversion-0.10_pre1.ebuild new file mode 100644 index 000000000000..1da1c30232e2 --- /dev/null +++ b/dev-util/subversion/subversion-0.10_pre1.ebuild @@ -0,0 +1,252 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Maintainer: Geert Bevin <gbevin@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/dev-util/subversion/subversion-0.10_pre1.ebuild,v 1.1 2002/02/26 14:41:16 gbevin Exp $ + +S=${WORKDIR}/svn +S_APACHE=${WORKDIR}/httpd-2.0 +S_APR=${WORKDIR}/apr +S_APRUTIL=${WORKDIR}/apr-util +S_AUTOCONF=${WORKDIR}/autoconf-2.52 +S_BDB=${WORKDIR}/db-4.0.14/build_unix +I_APACHE=${WORKDIR}/tmpinstall_httpd +I_AUTOCONF=${WORKDIR}/tmpinstall_autoconf-2.52 +I_BDB=${WORKDIR}/tmpinstall_db-4.0.14 +I_SVN=${WORKDIR}/tmpinstall_svn + +DESCRIPTION="A compelling replacement for CVS" +SRC_URI="http://www.sleepycat.com/update/4.0.14/db-4.0.14.tar.gz + ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.52.tar.bz2 + http://www.gbevin.com/gentoo/apr-subversion-200202261456.tar.bz2 + http://www.gbevin.com/gentoo/apr-util-subversion-200202261456.tar.bz2 + http://www.gbevin.com/gentoo/httpd-subversion-200202261456.tar.bz2 + http://www.gbevin.com/gentoo/svn-200202261456.tar.bz2" +HOMEPAGE="http://subversion.tigris.org/" + +DEPEND="virtual/glibc + >=dev-lang/python-2.0 + >=sys-apps/diffutils-2.7.7 + >=sys-devel/libtool-1.4.1-r1 + >=sys-devel/bison-1.28-r3 + >=sys-devel/m4-1.4o-r2 + >=net-misc/neon-0.19.2" +RDEPEND="virtual/glibc + >=dev-lang/python-2.0 + >=sys-apps/diffutils-2.7.7 + >=sys-devel/m4-1.4o-r2 + >=net-misc/neon-0.19.2" + +src_bootstrap() { + cd ${WORKDIR} + + # bootstrap subversion from version 0.9.0 + unpack ${DISTDIR}/subversion-r1302.tar.gz + cd ${WORKDIR}/subversion-r1302 + ./configure \ + --with-berkeley-db=${I_BDB} \ + --enable-maintainer-mode \ + --disable-shared + emake || die "make of subversion bootstrap failed" + + # get latest subversion version from cvs + cd ${WORKDIR} + subversion-r1302/subversion/clients/cmdline/svn checkout http://svn.collab.net/repos/svn/trunk -d svn +} + +src_compile_bdb() { + # configure berkeley db + cd ${S_BDB} + ../dist/configure \ + --prefix=/usr/svn \ + --mandir=/usr/svn/share/man \ + --infodir=/usr/svn/share/info \ + --datadir=/usr/svn/share \ + --localstatedir=/var/lib \ + --host=${CHOST} || die "../dist/configure of berkeley db failed" + # build berkeley db + emake || die "make of berkeley db failed" + # install temporary version of berkeley db + make prefix=${I_BDB} install || die "temporary installation of berkeley db failed" +} + +src_compile_apache() { + # copy the apr and apr-util dirs + rm -rf ${S_APACHE}/srclib/apr ${S_APACHE}/srclib/apr-util + cp -a ${S_APR} ${S_APACHE}/srclib/apr + cp -a ${S_APRUTIL} ${S_APACHE}/srclib/apr-util + + # configure apache + cd ${S_APACHE} + ./buildconf + ./configure \ + --prefix=/usr/svn \ + --mandir=/usr/svn/share/man \ + --infodir=/usr/svn/share/info \ + --datadir=/usr/svn/share \ + --localstatedir=/var/lib \ + --host=${CHOST} \ + --enable-so \ + --enable-dav \ + --with-dbm=db4 \ + --with-berkeley-db=${I_BDB} \ + --enable-maintainer-mode || die "./configure of apache failed" + make depend + # fix the apache sources to correctly work with LD_LIBRARY_PATH + mv srclib/pcre/Makefile srclib/pcre/Makefile_orig + sed -e "s#./dftables#LD_LIBRARY_PATH=\"${LD_LIBRARY_PATH}\" ./dftables#" \ + srclib/pcre/Makefile_orig > srclib/pcre/Makefile + mv server/Makefile server/Makefile_orig + sed -e "s#./gen_test_char#LD_LIBRARY_PATH=\"${LD_LIBRARY_PATH}\" ./gen_test_char#" \ + server/Makefile_orig > server/Makefile + # build apache + emake || die "make of apache failed" + # install temporary version of apache + make prefix=${I_APACHE} install || die "temporary installation of apache failed" + # change the paths in apxs to point to the temporarly installed version of apache + # this will make subversions dav module install there + mv ${I_APACHE}/bin/apxs ${I_APACHE}/bin/apxs_orig + sed -e "s#/usr/svn#${I_APACHE}#" \ + ${I_APACHE}/bin/apxs_orig > ${I_APACHE}/bin/apxs + chmod +x ${I_APACHE}/bin/apxs +} + +src_compile_autoconf() { + # configure autoconf + cd ${S_AUTOCONF} + ./configure \ + --prefix=${I_AUTOCONF} \ + --infodir=${I_AUTOCONF}/share/info \ + --mandir=${I_AUTOCONF}/share/man \ + --target=${CHOST} || die "./configure of autoconf failed" + # build autoconf + emake || die "make of autoconf failed" + # install temporary version of autoconf + make install || die "temporary installation of autoconf failed" +} + +src_compile_svn() { + cd ${S} + # create a copy of the most recent apr and apr-utils sources + rm -rf apr apr-util + cp -a ${S_APR} apr + cp -a ${S_APRUTIL} apr-util + # generate the configure scripts + sh ./autogen.sh || die "autoconf of subversion failed" + # configure subversion + # have to install in temporary location first and can't sue DESTDIR + # with make install since otherwise the libraries are wrongly installed + ./configure \ + --prefix=${I_SVN} \ + --with-berkeley-db=${I_BDB} \ + --with-neon=/usr \ + --with-apxs=${I_APACHE}/bin/apxs \ + --enable-maintainer-mode || die "./configure of subversion failed" + # build subversion + emake LD_LIBRARY_PATH="${I_BDB}/lib" || die "make of subversion failed" + # install temporary version of subversion + export LD_LIBRARY_PATH="${I_SVN}/lib:$LD_LIBRARY_PATH" + make LD_LIBRARY_PATH="${I_BDB}/lib:${I_APACHE}/lib:${I_SVN}/lib" install || die "temporary installation of subversion failed" +} + +src_compile() { + src_compile_bdb + # make the system pick up the installed berkeley db libs before others + export LD_LIBRARY_PATH="${I_BDB}/lib" + + src_compile_apache + # make the system have access to the cvs head libraries of apache 2.0 + export LD_LIBRARY_PATH="${I_APACHE}/lib:$LD_LIBRARY_PATH" + + src_compile_autoconf + # set the correct paths so that this new version of autoconf will be picked up instead + # of the old version that gentoo uses by default + export PATH="$I_AUTOCONF/bin:$PATH" + + src_compile_svn +} + +src_install () { + # copy the prior temporary installs to the image dir + mkdir -p ${D}/usr/svn + mkdir -p ${D}/usr/svn/lib + cp -av ${I_BDB}/lib/* ${D}/usr/svn/lib || die "installation of berkeley db failed" + cp -av ${I_APACHE}/* ${D}/usr/svn || die "installation of apache failed" + cp -av ${I_SVN}/* ${D}/usr/svn || die "installation of subversion failed" + + # install documentation + dodoc BUGS COMMITTERS COPYING HACKING IDEAS INSTALL PORTING README + cd notes + for f in *.txt + do + dodoc ${f} + done + + # remove portage /var/tmp paths from files + cd ${D}/usr/svn + for x in bin/apxs \ + bin/apu-config \ + bin/apr-config \ + build/config_vars.mk \ + conf/highperformance-std.conf \ + conf/highperformance.conf \ + conf/httpd-std.conf \ + conf/httpd.conf \ + conf/ssl-std.conf \ + conf/ssl.conf \ + conf/httpd.conf.bak \ + lib/libsvn_delta.la \ + lib/libsvn_ra_dav.la \ + lib/libexpat.la \ + lib/libsvn_subr.la \ + lib/libaprutil.la \ + lib/libsvn_ra_local.la \ + lib/libsvn_repos.la \ + lib/libapr.la \ + lib/libsvn_client.la \ + lib/libsvn_fs.la \ + lib/libsvn_ra.la \ + lib/libsvn_wc.la + do + mv ${x} ${x}_orig + sed -e "s#/var/tmp/portage/${P}/work/tmpinstall_svn#/usr/svn#g" \ + -e "s#/var/tmp/portage/${P}/work/tmpinstall_httpd#/usr/svn#g" \ + -e "s#/var/tmp/portage/${P}/work/tmpinstall_db-4.0.14#/usr/svn#g" \ + ${x}_orig > ${x} + rm ${x}_orig + done + + # add the subversion path to the apache config + cat << ENDL >> ${D}/usr/svn/conf/httpd.conf +<Location /svn/repos> + DAV svn + SVNPath /var/lib/svn +</Location> +ENDL + + # setup gentoo to make using subversion easier + mkdir -p ${D}/var/lib/svn + mkdir -p ${D}/usr/svn/logs + touch ${D}/usr/svn/logs/.keep + insinto /usr/bin + dosym /usr/svn/bin/svn /usr/bin/svn + dosym /usr/svn/bin/svnadmin /usr/bin/svnadmin + dosym /usr/svn/bin/svnlook /usr/bin/svnlook + insinto /etc/env.d + echo "LDPATH=/usr/svn/lib" > ${D}/etc/env.d/10subversion +} + +pkg_config() { + einfo ">>> Initializing the database ..." + if [ -f /var/lib/svn/db ] ; then + echo "A subversion repository already exists and I will not overwrite it." + echo "Delete /var/lib/svn first if you're sure you want to have a clean version." + else + einfo ">>> Populating repository directory ..." + # create initial repository + LD_LIBRARY_PATH="/usr/svn/lib:$LD_LIBRARY_PATH" /usr/svn/bin/svnadmin create /var/lib/svn + + einfo ">>> Setting repository permissions ..." + chown -Rf nobody.nobody /var/lib/svn + chmod -Rf 755 /var/lib/svn + fi +} |