You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

92 lines
2.8 KiB

# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../subversion/subversion.conf
subversion: fixed to install perl modules into vendor directory (see note!) Note: According to http://search.cpan.org/dist/perl/INSTALL#Installation_Directories this is the right place for distributions which build binary packages of perl add-on modules. If you wonder about the changed build process here is are the relavant parts out of the 'subversion/bindings/swig/INSTALL' file. ------------------------------------------------------------------------- * Perl Perl 5.8.0 is required. You can specify the perl binary by passing PERL=/path/to/perl as part of the configure command in the top level of the Subversion source tree. Make sure that the Perl version used is the same one that you configured SWIG to run against during the SWIG configure (see above). 1. Run `make swig-pl' from the top of the Subversion source tree. 2. Run `make check-swig-pl' from the top of the Subversion source tree, to test the bindings 3. to install run `make install-swig-pl' from the top of the Subversion source tree. If you need to pass extra parameters to Perl build process (Makefile.PL), then you need to do this process somewhat different: 1. Run `make swig-pl-lib' from the top of the Subversion source tree. 2. Run `make install-swig-pl-lib' 3. cd subversion/bindings/swig/perl/native 4. Run `perl Makefile.PL EXTRAOPTIONSHERE` 5. Run `make install' To install the Perl bindings in a location other than the system Perl directory, use the above instructions with the extra option PREFIX=/your/prefix/here. -------------------------------------------------------------------------
14 years ago
# Copyright (C) 2006 - 2011 The OpenSDE Project
# Copyright (C) 2004 - 2006 The T2 SDE Project
# Copyright (C) 1998 - 2003 Clifford Wolf
#
# More information can be found in the files COPYING and README.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---
# use the apache prefix
# . $base/package/*/apache/apache.conf
if [ $prefix_auto = 1 ]; then
prefix="usr"
set_confopt
fi
# APR is mandatory, so no additional test needed.
#
pkgprefix -t apr
var_append extraconfopt " " "--with-apr=$root/$( pkgprefix apr )"
pkgprefix -t apr-util
var_append extraconfopt " " "--with-apr-util=$root/$( pkgprefix apr-util )"
# all this is to build the apache server-side module and if so, no modification
# to httpd.conf are done ...
#
if pkginstalled apache; then
var_append extraconfopt " " "--with-apxs=$root/$( pkgprefix sbindir apache )/apxs"
var_append extraconfopt " " "--disable-mod-activation"
# --with-berkeley-db=/usr/include/db40:/usr/lib
fi
# build and install perl bindings
svn_inst_pl() {
subversion: fixed to install perl modules into vendor directory (see note!) Note: According to http://search.cpan.org/dist/perl/INSTALL#Installation_Directories this is the right place for distributions which build binary packages of perl add-on modules. If you wonder about the changed build process here is are the relavant parts out of the 'subversion/bindings/swig/INSTALL' file. ------------------------------------------------------------------------- * Perl Perl 5.8.0 is required. You can specify the perl binary by passing PERL=/path/to/perl as part of the configure command in the top level of the Subversion source tree. Make sure that the Perl version used is the same one that you configured SWIG to run against during the SWIG configure (see above). 1. Run `make swig-pl' from the top of the Subversion source tree. 2. Run `make check-swig-pl' from the top of the Subversion source tree, to test the bindings 3. to install run `make install-swig-pl' from the top of the Subversion source tree. If you need to pass extra parameters to Perl build process (Makefile.PL), then you need to do this process somewhat different: 1. Run `make swig-pl-lib' from the top of the Subversion source tree. 2. Run `make install-swig-pl-lib' 3. cd subversion/bindings/swig/perl/native 4. Run `perl Makefile.PL EXTRAOPTIONSHERE` 5. Run `make install' To install the Perl bindings in a location other than the system Perl directory, use the above instructions with the extra option PREFIX=/your/prefix/here. -------------------------------------------------------------------------
14 years ago
make swig-pl-lib
make install-swig-pl-lib
pushd subversion/bindings/swig/perl/native
perl Makefile.PL INSTALLDIRS='vendor'
make install
popd
}
# build and install python bindings
svn_inst_py() {
# PYTHON_SITE=`python -c "import os,sys; print os.path.join(sys.prefix, 'lib','python'+sys.version[:3],'site-packages')"`
# DESTDIR is used inside
PYTHON_SITE=$(pkgprefix libdir python)/python$( pkgprefix ver python | cut -d. -f1-2 )
make swig-py \
swig_pydir=$PYTHON_SITE/libsvn \
swig_pydir_extra=$PYTHON_SITE/svn
make install-swig-py \
swig_pydir=$PYTHON_SITE/libsvn \
swig_pydir_extra=$PYTHON_SITE/svn
}
# build and install ruby bindings
svn_inst_rb() {
make swig-rb
make install-swig-rb
}
hook_add postmake 4 "cp -vrf tools $docdir"
# if swig is present build and install the perl and python bindings
if pkginstalled swig; then
pkginstalled perl && hook_add postmake 5 "svn_inst_pl"
pkginstalled python && hook_add postmake 5 "svn_inst_py"
pkginstalled ruby && hook_add postmake 5 "svn_inst_rb"
fi
# use system wide neon
if pkginstalled neon; then
pkgprefix -t neon
var_append extraconfopt " " "--with-neon=$root/$( pkgprefix neon )"
var_append extraconfopt " " "--disable-neon-version-check"
fi
# use bdb if available (it needs bdb 4.4)
if pkginstalled bdb; then
var_append extraconfopt " " "--with-berkeley-db"
else
var_append extraconfopt " " "--without-berkeley-db"
fi