OpenSDE Packages Database (without history before r20070)
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.

91 lines
2.8 KiB

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. -------------------------------------------------------------------------
13 years ago
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. -------------------------------------------------------------------------
13 years ago
  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../subversion/subversion.conf
  5. # Copyright (C) 2006 - 2011 The OpenSDE Project
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. # Copyright (C) 1998 - 2003 Clifford Wolf
  8. #
  9. # More information can be found in the files COPYING and README.
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; version 2 of the License. A copy of the
  14. # GNU General Public License can be found in the file COPYING.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. # use the apache prefix
  17. # . $base/package/*/apache/apache.conf
  18. if [ $prefix_auto = 1 ]; then
  19. prefix="usr"
  20. set_confopt
  21. fi
  22. # APR is mandatory, so no additional test needed.
  23. #
  24. pkgprefix -t apr
  25. var_append extraconfopt " " "--with-apr=$root/$( pkgprefix apr )"
  26. pkgprefix -t apr-util
  27. var_append extraconfopt " " "--with-apr-util=$root/$( pkgprefix apr-util )"
  28. # all this is to build the apache server-side module and if so, no modification
  29. # to httpd.conf are done ...
  30. #
  31. if pkginstalled apache; then
  32. var_append extraconfopt " " "--with-apxs=$root/$( pkgprefix sbindir apache )/apxs"
  33. var_append extraconfopt " " "--disable-mod-activation"
  34. # --with-berkeley-db=/usr/include/db40:/usr/lib
  35. fi
  36. # build and install perl bindings
  37. svn_inst_pl() {
  38. make swig-pl-lib
  39. make install-swig-pl-lib
  40. pushd subversion/bindings/swig/perl/native
  41. perl Makefile.PL INSTALLDIRS='vendor'
  42. make install
  43. popd
  44. }
  45. # build and install python bindings
  46. svn_inst_py() {
  47. # PYTHON_SITE=`python -c "import os,sys; print os.path.join(sys.prefix, 'lib','python'+sys.version[:3],'site-packages')"`
  48. # DESTDIR is used inside
  49. PYTHON_SITE=$(pkgprefix libdir python)/python$( pkgprefix ver python | cut -d. -f1-2 )
  50. make swig-py \
  51. swig_pydir=$PYTHON_SITE/libsvn \
  52. swig_pydir_extra=$PYTHON_SITE/svn
  53. make install-swig-py \
  54. swig_pydir=$PYTHON_SITE/libsvn \
  55. swig_pydir_extra=$PYTHON_SITE/svn
  56. }
  57. # build and install ruby bindings
  58. svn_inst_rb() {
  59. make swig-rb
  60. make install-swig-rb
  61. }
  62. hook_add postmake 4 "cp -vrf tools $docdir"
  63. # if swig is present build and install the perl and python bindings
  64. if pkginstalled swig; then
  65. pkginstalled perl && hook_add postmake 5 "svn_inst_pl"
  66. pkginstalled python && hook_add postmake 5 "svn_inst_py"
  67. pkginstalled ruby && hook_add postmake 5 "svn_inst_rb"
  68. fi
  69. # use system wide neon
  70. if pkginstalled neon; then
  71. pkgprefix -t neon
  72. var_append extraconfopt " " "--with-neon=$root/$( pkgprefix neon )"
  73. var_append extraconfopt " " "--disable-neon-version-check"
  74. fi
  75. # use bdb if available (it needs bdb 4.4)
  76. if pkginstalled bdb; then
  77. var_append extraconfopt " " "--with-berkeley-db"
  78. else
  79. var_append extraconfopt " " "--without-berkeley-db"
  80. fi