Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 69105 Details for
Bug 69417
mapserver-4.2.5.ebuild (New Package)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
updated for dev-lang/php with some preliminary version detection...
mapserver-4.6.1.ebuild (text/plain), 5.30 KB, created by
Lorinc Czegledi
on 2005-09-23 11:56:11 UTC
(
hide
)
Description:
updated for dev-lang/php with some preliminary version detection...
Filename:
MIME Type:
Creator:
Lorinc Czegledi
Created:
2005-09-23 11:56:11 UTC
Size:
5.30 KB
patch
obsolete
># Copyright 1999-2005 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >inherit eutils mono > >DESCRIPTION="OpenSource development environment for constructing spatially enabled Internet-web applications." > >HOMEPAGE="http://mapserver.gis.umn.edu/" > > >SRC_URI="http://cvs.gis.umn.edu/dist/${P}.tar.gz" > >LICENSE="Regents of the University of Minnesota." > >SLOT="0" > >KEYWORDS="~x86" > >IUSE="pdf proj geos tiff gdal xpm threads postgis mygis ming \ > php python perl ruby tcl java mono" > >MY_ProjUSE="wmsserver wmsclient" >MY_GPUSE="wfs wcs wmsclient wfsclient" > >DEPEND="geos? (sci-libs/geos) > proj? (sci-libs/proj net-misc/curl) > gdal? (sci-libs/gdal) > postgis? (dev-db/postgis) > mygis? (dev-db/mygis) > media-libs/freetype > tiff? (media-libs/tiff sci-libs/libgeotiff) > media-libs/libpng > media-libs/jpeg > xpm? (media-libs/xpm) > sys-libs/zlib > ming? (media-libs/ming) > pdf? (media-libs/pdflib) > >=media-libs/gd-2.0.12 > net-www/apache > php? (dev-lang/php) > ruby? (dev-lang/ruby dev-lang/swig) > python? (dev-lang/python) > perl? (dev-perl/DBI) > java? (=virtual/jdk-1.4* dev-java/java-config) > mono? (dev-lang/mono dev-lang/swig) > tcl? (dev-lang/tcl dev-lang/swig)" > >S="${WORKDIR}/${P}" >MY_PHPV="" > >cd_script() { > einfo "$2 the mapserver $1-mapscript" > cd ${S}/mapscript/$1 >} > >pkg_setup() { > if (use php); then > MY_PHPV="$(portageq match / dev-lang/php | cut -d'-' -f3 | cut -d'.' -f1)" > MY_PHPDIR="/usr/lib/php${MY_PHPV}/include/php" > einfo "Trying with PHP v-$(php-config --version) : ${MY_PHPDIR}" > fi >} > >src_compile() { > local tmp > local step > step="Building" > cd ${S} > my_conf="--with-freetype" > > if (use gdal && use proj); then > my_conf="--with-ogr ${my_conf}"; > for i in ${MY_GPUSE}; do > my_conf="${my_conf} --with-${i}" > done > fi > > if (use proj); then > for i in ${MY_ProjUSE}; do > my_conf="${my_conf} --with-${i}" > done > fi > > > if (use php); then > my_conf="${my_conf} --with-php=${MY_PHPDIR}" > fi > > if (use perl || use python || use ruby || use tcl || use php) ; then > my_conf="${my_conf} \ > $(use_with perl) $(use_with python) \ > $(use_with ruby) $(use_with tcl) \ > --with-mapscript"; > fi > > cd ${S} > econf \ > $(use_with gdal)\ > $(use_with proj)\ > $(use_with postgis)\ > $(use_with tiff)\ > $(use_with pdf)\ > $(use_with ming)\ > $(use_with java)\ > ${my_conf}\ > || die "econf failed" > > make || die "make failed" > > if use perl; then > local MY_D > cd_script perl ${step} > MY_D="$(echo ${D}/usr | sed s/"\/"/'\\\/'/g)" > cat Makefile.PL | \ > sed s/"WriteMakefile("/"WriteMakefile(\n\ > 'PREFIX' => '${MY_D}',\n\ > 'PERLPREFIX' =\> '${MY_D}',\n\ > 'SITEPREFIX' =\> '${MY_D}',\n\ > 'VENDORPREFIX' =\> '${MY_D}',"/ > Makefile.TPL > perl Makefile.TPL > emake > fi > > if use python; then > cd_script python ${step} > cp modern/* . > python setup.py build > fi > > if use ruby; then > cd_script ruby ${step} > ruby -I${D} extconf.rb > cp ../mapscript.i . > local my_gdalinc > my_gdalinc="$(gdal-config --cflags | sed s/"\/"/"\\\\\/"/g)" > tmp="$(mktemp -p ${S})" > cat Makefile | \ > sed s/"-I."/"-I\/usr\/include ${my_gdalinc} -I. "/ >\ > $tmp > mv $tmp Makefile > emake > fi > > if use tcl; then > cd_script tcl ${step} > tmp="$(mktemp -p ${S})" > cat configure | \ > sed s/"perlvars"/"mapscriptvars"/ > \ > $tmp > mv $tmp configure > chmod 777 configure > econf --with-tcl=/usr > local MY_D > MY_D="$(echo ${D}| sed s/"\/"/"\\\\\/"/g)" > cat Makefile |\ > sed -e s/" -DTCL_WIDE_INT_TYPE=long long"/""/ \ > -e s/"TCL_EXEC_PREFIX = \/usr"/"TCL_EXEC_PREFIX = ${MY_D}\/usr"/ >\ > $tmp > mv $tmp Makefile > emake > fi > > if use java; then > cd_script java ${step} > emake > fi > > if use mono; then > cd_script csharp ${step} > tmp="$(mktemp -p ${S})" > cat Makefile | \ > sed s/"\/usr\/local\/bin\/swig"/"\/usr\/bin\/swig"/ >\ > $tmp > mv $tmp Makefile > make > fi >} > > >mapscript_install_examples() { > local arg > arg="$1" > einfo "$arg-mapscript examples could be found" > einfo "/usr/share/doc/${PF}/mapscript/examples/$arg" > insinto /usr/share/doc/${PF}/mapscript/examples/$arg/ > doins examples/* >} > >src_install() { > local step > step="Installing" > extra_dir="fonts tests tests/vera symbols" > > dodir /usr /usr/bin > > into /usr > mapscripts="perl ruby tcl" > for i in ${mapscripts}; do > if use $i; then > cd_script $i ${step} > einstall > mapscript_install_examples $i > fi > done > if use python; then > cd_script python ${step} > python setup.py install --prefix="${D}/usr/" > mapscript_install_examples python > fi > if (use java); then > cd_script java ${step} > insinto $(find /opt/ -name *jdk*)/lib > doins mapscript.jar > dolib.so libmapscript.so > mapscript_install_examples java > fi > if use mono; then > cd_script csharp ${step} > mapscript_install_examples csharp ${step} > insinto /usr/share/doc/${PF}/mapscript/examples/csharp > doins mapscript_csharp.dll libmapscript.so > fi > > cd ${S} > into /usr > > if use pdf; then > dobin ${S}/shp2pdf > fi > > dobin ${S}/sortshp ${S}/shp2img ${S}/shptree ${S}/shptreevis ${S}/shptreetst ${S}/legend ${S}/scalebar ${S}/tile4ms > > dodoc INSTALL README HISTORY.TXT > > if (use php); then > destDir="$(php-config --extension-dir)" > dodir ${destDir} > cp mapscript/php3/php_mapscript.so \ > ${D}/${destDir} > fi > > for i in ${extra_dir}; do > insinto /usr/share/doc/${PF}/$i > doins ${S}/$i/* > done > > exeinto /var/www/localhost/cgi-bin/ > doexe ${S}/mapserv >} >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 69417
:
42853
|
42854
|
44845
|
45224
|
45225
|
45226
|
45357
|
54349
|
58494
|
58498
|
58756
|
61374
|
64358
|
64604
|
69105
|
70849
|
70853
|
70860
|
70931
|
72947
|
84510
|
84539
|
84540
|
84541
|
84542
|
87801
|
90715