Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 58261 Details for
Bug 91774
mapserver 4.4.2 ebuild
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
mapserver-4.4.2.ebuild
mapserver-4.4.2.ebuild (text/plain), 4.58 KB, created by
FENOY Gérald (RETIRED)
on 2005-05-07 01:50:33 UTC
(
hide
)
Description:
mapserver-4.4.2.ebuild
Filename:
MIME Type:
Creator:
FENOY Gérald (RETIRED)
Created:
2005-05-07 01:50:33 UTC
Size:
4.58 KB
patch
obsolete
># Copyright 1999-2005 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >inherit eutils > >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 tcl proj geos tiff gdal xpm threads postgis mygis ming \ > php python perl ruby" > >MY_IUSE="wfsclient wmsclient wms wcsclient wcs" > >DEPEND="geos? (sci-libs/geos) > proj? (sci-libs/proj) > gdal? (sci-libs/gdal) > postgis? (|| (dev-db/postgis dev-db/postgis-cvs)) > mygis? (dev-db/mygis) > media-libs/freetype > tiff? (media-libs/tiff) > 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-php/php-cgi) > ruby? (dev-lang/ruby dev-lang/swig) > python? (dev-lang/python) > perl? (dev-perl/DBI)" > >S="${WORKDIR}/${P}" >MY_PHPV="" > >pkg_setup() { > if (use php); then > MY_PHPV="$(portageq match / dev-php/php-cgi | cut -d'-' -f4)" > MY_PHPR="$(portageq match / dev-php/php-cgi | cut -d'-' -f5)" > [ -n "${MY_PHPR}" ] && MY_PHPFV="$(echo ${MY_PHPV}-${MY_PHPR})" || MY_PHPFV="${MY_PHPV}" > MY_PHPDIR="${WORKDIR}/../../php-cgi-${MY_PHPFV}/work/php-${MY_PHPV}/" > einfo "using with ${MY_PHPDIR}" > if [ -z "$(ls /var/tmp/portage/ | grep php-cgi-${MY_PHPFV})" ] ; then > eerror "Error: you need to emerge php-cgi with mapscript support" > eerror "and the FEATURES variable must contain \"noclean\"." > die "read the message above." > else > if [ -z "$(find ${MY_PHPDIR}/regex/ -name *.o)" ] ; then > ewarn "Warning : no regex was found." > fi > fi > fi >} > >src_compile() { > cd ${S} > my_conf="--with-freetype" > if use gdal; then > if use ruby; then > einfo "OGR support disable (ruby support enabled)" > else > my_conf="--with-ogr ${my_conf}"; > fi > fi > > if (use php); then > my_conf="${my_conf} --with-php-regex-dir=${MY_PHPDIR}/regex --with-php=${MY_PHPDIR}" > fi > > if (use perl || use python || use ruby || use php) ; then > my_conf="${my_conf} --with-mapscript\ > $(use_with perl) $(use_with python) \ > $(use_with ruby)"; > fi > > for i in ${MY_IUSE}; do > my_conf="${my_conf} --with-${i}" > done > my_conf="${my_conf}" > cd ${S} > econf \ > $(use_with gdal)\ > $(use_with proj)\ > $(use_with postgis)\ > $(use_with tiff)\ > $(use_with pdf)\ > $(use_with ming)\ > ${my_conf}\ > || die "econf failed" > > make || die "make failed" > > if use perl; then > local MY_D > einfo "Build the mapserver perl-mapscript" > cd ${S}/mapscript/perl/ > MY_D="$(echo ${D} | sed s/"\/"/'\\\/'/g)" > echo ${MY_D} > 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 > einfo "Build the mapserver python-mapscript" > cd ${S}/mapscript/python > cp modern/* . > python setup.py build > fi > > if use ruby; then > einfo "Build the mapserver ruby-mapscript" > cd ${S}/mapscript/ruby > ruby -I${D} extconf.rb > cp ../mapscript.i . > emake > fi > ># Problem findng headers for ogr ># if use tcl; then ># einfo "Building the mapserver tcl-mapscript" ># cd ${S}/mapscript/tcl ># econf ># fi >} > >src_install() { > extra_dir="fonts tests tests/vera symbols" > > map_dir="/opt /opt/mapserver /opt/mapserver/fonts /opt/mapserver/tests /opt/mapserver/symbols" > for i in ${map_dir}; do > dodir $i > done > dodir /opt/ /opt/mapserver > dodir /usr /usr/bin > > into /usr > if use perl; then > cd ${S}/mapscript/perl/ > einstall > insinto /opt/mapserver/mapscript/perl/examples > doins examples/* > fi > > if use python; then > cd ${S}/mapscript/python > python setup.py install --prefix="${D}/usr/" > insinto /opt/mapserver/mapscript/python/examples > doins examples/* > fi > > if (use ruby); then > cd ${S}/mapscript/ruby > einstall > insinto /opt/mapserver/mapscript/ruby/examples > doins examples/* > 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 > insinto /usr/lib/php/extensions/no-debug-non-zts-20020429/ > cp mapscript/php3/php_mapscript.so \ > ${D}/usr/lib/php/extensions/no-debug-non-zts-20020429/ > fi > > for i in ${extra_dir}; do > insinto /opt/mapserver/$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 91774
: 58261