diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /sci-geosciences/mapserver | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'sci-geosciences/mapserver')
-rw-r--r-- | sci-geosciences/mapserver/Manifest | 1 | ||||
-rw-r--r-- | sci-geosciences/mapserver/files/5.4.2-ldflags.patch | 90 | ||||
-rw-r--r-- | sci-geosciences/mapserver/files/6.0.0_rc1-bool.patch | 23 | ||||
-rw-r--r-- | sci-geosciences/mapserver/files/6.0.0_rc1-ldflags.patch | 89 | ||||
-rw-r--r-- | sci-geosciences/mapserver/files/6.0.0_rc1-php_ldflags.patch | 15 | ||||
-rw-r--r-- | sci-geosciences/mapserver/files/6.1.0-php-5.4.patch | 69 | ||||
-rw-r--r-- | sci-geosciences/mapserver/files/mapserver_tcl.patch-r1 | 44 | ||||
-rw-r--r-- | sci-geosciences/mapserver/mapserver-6.0.1-r2.ebuild | 234 | ||||
-rw-r--r-- | sci-geosciences/mapserver/mapserver-6.0.1-r3.ebuild | 221 | ||||
-rw-r--r-- | sci-geosciences/mapserver/metadata.xml | 12 |
10 files changed, 798 insertions, 0 deletions
diff --git a/sci-geosciences/mapserver/Manifest b/sci-geosciences/mapserver/Manifest new file mode 100644 index 000000000000..d294b0baf4b0 --- /dev/null +++ b/sci-geosciences/mapserver/Manifest @@ -0,0 +1 @@ +DIST mapserver-6.0.1.tar.gz 2430064 SHA256 dd6821917aa7030381442f5e092e4f46f44b9deb9425ec92729e5819e9b61d65 SHA512 0fd9da9d6452fbfbaf0c815e6d15309e185119a4ab33cab2f1c6839bfb8c3a75ce6e7e7779b0eb2aa6e80d1a623ca6e0e58a02049b0db0bfa3f7b0f29117d5dc WHIRLPOOL e4846d40b93c22f7b5dcce1c242b4d88db253be9185194b45c4acddf9066d10c2ec2fbe667941dfe15702838690517a0e57719b1937169e55517e43ed1c225b8 diff --git a/sci-geosciences/mapserver/files/5.4.2-ldflags.patch b/sci-geosciences/mapserver/files/5.4.2-ldflags.patch new file mode 100644 index 000000000000..d202b8d4692f --- /dev/null +++ b/sci-geosciences/mapserver/files/5.4.2-ldflags.patch @@ -0,0 +1,90 @@ +diff --git a/Makefile.in b/Makefile.in +index 56cb209..46a8a4c 100755 +--- a/Makefile.in ++++ b/Makefile.in +@@ -252,7 +252,7 @@ SUP_LIBS = $(GD_LIB) $(AGG_LIB) $(PDF_LIB) $(TIFF_LIB) $(PROJ_LIBS) \ + # STATIC_LIBS is full filename with path of libs that will be statically linked + STATIC_LIBS= $(GD_STATIC) + +-EXE_LDFLAGS = $(RUNPATHS) -L. -lmapserver $(SUP_LIBS) $(STATIC_LIBS) ++EXE_LIBS = $(RUNPATHS) -L. -lmapserver $(SUP_LIBS) $(STATIC_LIBS) + + RM= /bin/rm -f + +@@ -316,59 +316,59 @@ $(LIBMAP_SHARED): $(LIBMAP_STATIC) + && ln -f -s $(LIBMAP_SH_VER) $(LIBMAP_SHARED) + + shp2pdf: $(LIBMAP_STATIC) shp2pdf.o mapserver.h +- $(LD) $(CFLAGS) shp2pdf.o $(EXE_LDFLAGS) -o shp2pdf ++ $(LD) $(CFLAGS) shp2pdf.o $(LDFLAGS) -o shp2pdf $(EXE_LIBS) + + shp2img: $(LIBMAP_STATIC) shp2img.o mapserver.h +- $(LD) $(CFLAGS) shp2img.o $(EXE_LDFLAGS) -o shp2img ++ $(LD) $(CFLAGS) shp2img.o $(LDFLAGS) -o shp2img $(EXE_LIBS) + + sym2img: $(LIBMAP_STATIC) sym2img.o mapserver.h +- $(LD) $(CFLAGS) sym2img.o $(EXE_LDFLAGS) -o sym2img ++ $(LD) $(CFLAGS) sym2img.o $(LDFLAGS) -o sym2img $(EXE_LIBS) + + legend: $(LIBMAP_STATIC) legend.o mapserver.h +- $(LD) $(CFLAGS) legend.o $(EXE_LDFLAGS) -o legend ++ $(LD) $(CFLAGS) legend.o $(LDFLAGS) -o legend $(EXE_LIBS) + + scalebar: $(LIBMAP_STATIC) scalebar.o mapserver.h +- $(LD) $(CFLAGS) scalebar.o $(EXE_LDFLAGS) -o scalebar ++ $(LD) $(CFLAGS) scalebar.o $(LDFLAGS) -o scalebar $(EXE_LIBS) + + mapserv: mapserv.h maptile.h $(LIBMAP_STATIC) mapserv.o cgiutil.o maptile.o mapserver.h +- $(LD) $(CFLAGS) mapserv.o cgiutil.o maptile.o $(EXE_LDFLAGS) -o mapserv ++ $(LD) $(CFLAGS) mapserv.o cgiutil.o maptile.o $(LDFLAGS) -o mapserv $(EXE_LIBS) + + shpindex: $(LIBMAP_STATIC) shpindex.o mapserver.h +- $(LD) $(CFLAGS) shpindex.o $(EXE_LDFLAGS) -o shpindex ++ $(LD) $(CFLAGS) shpindex.o $(LDFLAGS) -o shpindex $(EXE_LIBS) + + shptree: $(LIBMAP_STATIC) shptree.o mapserver.h +- $(LD) $(CFLAGS) shptree.o $(EXE_LDFLAGS) -o shptree ++ $(LD) $(CFLAGS) shptree.o $(LDFLAGS) -o shptree $(EXE_LIBS) + + shptreevis: $(LIBMAP_STATIC) shptreevis.o mapserver.h +- $(LD) $(CFLAGS) shptreevis.o $(EXE_LDFLAGS) -o shptreevis ++ $(LD) $(CFLAGS) shptreevis.o $(LDFLAGS) -o shptreevis $(EXE_LIBS) + + shptreetst: $(LIBMAP_STATIC) shptreetst.o mapserver.h +- $(LD) $(CFLAGS) shptreetst.o $(EXE_LDFLAGS) -o shptreetst ++ $(LD) $(CFLAGS) shptreetst.o $(LDFLAGS) -o shptreetst $(EXE_LIBS) + + sortshp: sortshp.o +- $(LD) $(CFLAGS) sortshp.o $(EXE_LDFLAGS) -o sortshp ++ $(LD) $(CFLAGS) sortshp.o $(LDFLAGS) -o sortshp $(EXE_LIBS) + + tile4ms: tile4ms.o +- $(LD) $(CFLAGS) tile4ms.o $(EXE_LDFLAGS) -o tile4ms ++ $(LD) $(CFLAGS) tile4ms.o $(LDFLAGS) -o tile4ms $(EXE_LIBS) + + msencrypt: $(LIBMAP_STATIC) msencrypt.o mapserver.h +- $(LD) $(CFLAGS) msencrypt.o $(EXE_LDFLAGS) -o msencrypt ++ $(LD) $(CFLAGS) msencrypt.o $(LDFLAGS) -o msencrypt $(EXE_LIBS) + + testexpr: testexpr.o mapparser.o maplexer.o +- $(LD) $(CFLAGS) testexpr.o $(EXE_LDFLAGS) -o testexpr ++ $(LD) $(CFLAGS) testexpr.o $(LDFLAGS) -o testexpr $(EXE_LIBS) + + testcopy: $(LIBMAP_STATIC) testcopy.o mapcopy.o mapserver.h +- $(LD) $(CFLAGS) testcopy.o $(EXE_LDFLAGS) -o testcopy ++ $(LD) $(CFLAGS) testcopy.o $(LDFLAGS) -o testcopy $(EXE_LIBS) + + test_mapcrypto: $(LIBMAP_STATIC) mapcrypto.c +- $(CC) $(CFLAGS) mapcrypto.c -DTEST_MAPCRYPTO $(EXE_LDFLAGS) -o test_mapcrypto ++ $(CC) $(CFLAGS) mapcrypto.c -DTEST_MAPCRYPTO $(LDFLAGS) -o test_mapcrypto $(EXE_LIBS) + + mapscriptvars: Makefile + touch mapscriptvars + pwd > mapscriptvars + echo $(IGNORE_MISSING_DATA) $(USE_POINT_Z_M) $(STRINGS) @ALL_ENABLED@ >> mapscriptvars + echo -I. $(PROJ_INC) $(GD_INC) $(TTF_INC) $(TIFF_INC) $(JPEG_INC) $(SDE_INC) $(OGR_INC) $(GDAL_INC) $(GEOS_INC) >> mapscriptvars +- echo $(EXE_LDFLAGS) >> mapscriptvars ++ echo $(LDFLAGS) >> mapscriptvars + echo $(STATIC_LIBS) >> mapscriptvars + grep '#define MS_VERSION ' mapserver.h >> mapscriptvars + diff --git a/sci-geosciences/mapserver/files/6.0.0_rc1-bool.patch b/sci-geosciences/mapserver/files/6.0.0_rc1-bool.patch new file mode 100644 index 000000000000..8016961b515b --- /dev/null +++ b/sci-geosciences/mapserver/files/6.0.0_rc1-bool.patch @@ -0,0 +1,23 @@ +diff -urN mapserver-6.0.0-rc1.old/mapscript/php/bool.h mapserver-6.0.0-rc1/mapscript/php/bool.h +--- mapserver-6.0.0-rc1.old/mapscript/php/bool.h 1970-01-01 01:00:00.000000000 +0100 ++++ mapserver-6.0.0-rc1/mapscript/php/bool.h 2011-05-02 22:00:00.000000000 +0200 +@@ -0,0 +1,8 @@ ++#ifndef BOOL_H ++#define BOOL_H ++ ++#define bool_t int ++#define TRUE 1 ++#define FALSE 0 ++ ++#endif /* BOOL_H */ +diff -urN mapserver-6.0.0-rc1.old/mapscript/php/php_mapscript.h mapserver-6.0.0-rc1/mapscript/php/php_mapscript.h +--- mapserver-6.0.0-rc1.old/mapscript/php/php_mapscript.h 2011-05-02 12:10:03.000000000 +0200 ++++ mapserver-6.0.0-rc1/mapscript/php/php_mapscript.h 2011-05-02 22:00:11.000000000 +0200 +@@ -32,6 +32,7 @@ + #ifndef PHP_MAPSCRIPT_H + #define PHP_MAPSCRIPT_H + ++#include "bool.h" + #include "php.h" + #include "zend_interfaces.h" + #include "php_mapscript_util.h" diff --git a/sci-geosciences/mapserver/files/6.0.0_rc1-ldflags.patch b/sci-geosciences/mapserver/files/6.0.0_rc1-ldflags.patch new file mode 100644 index 000000000000..336fb2eff4f7 --- /dev/null +++ b/sci-geosciences/mapserver/files/6.0.0_rc1-ldflags.patch @@ -0,0 +1,89 @@ +diff -urN mapserver-6.0.0-rc1.old/Makefile.in mapserver-6.0.0-rc1/Makefile.in +--- mapserver-6.0.0-rc1.old/Makefile.in 2011-05-02 12:10:03.000000000 +0200 ++++ mapserver-6.0.0-rc1/Makefile.in 2011-05-02 16:29:31.000000000 +0200 +@@ -264,7 +264,7 @@ + # STATIC_LIBS is full filename with path of libs that will be statically linked + STATIC_LIBS= $(GD_STATIC) + +-EXE_LDFLAGS = $(RUNPATHS) -L. -lmapserver $(SUP_LIBS) $(STATIC_LIBS) ++EXE_LIBS = $(RUNPATHS) -L. -lmapserver $(SUP_LIBS) $(STATIC_LIBS) + + RM= /bin/rm -f + +@@ -351,59 +351,59 @@ + && ln -f -s $(LIBMAP_SH_VER) $(LIBMAP_SHARED) + + shp2pdf: $(LIBMAP_STATIC) shp2pdf.o mapserver.h +- $(LD) $(CFLAGS) shp2pdf.o $(EXE_LDFLAGS) -o shp2pdf ++ $(LD) $(CFLAGS) shp2pdf.o $(LDFLAGS) -o shp2pdf $(EXE_LIBS) + + shp2img: $(LIBMAP_STATIC) shp2img.o mapserver.h +- $(LD) $(CFLAGS) shp2img.o $(EXE_LDFLAGS) -o shp2img ++ $(LD) $(CFLAGS) shp2img.o $(LDFLAGS) -o shp2img $(EXE_LIBS) + + sym2img: $(LIBMAP_STATIC) sym2img.o mapserver.h +- $(LD) $(CFLAGS) sym2img.o $(EXE_LDFLAGS) -o sym2img ++ $(LD) $(CFLAGS) sym2img.o $(LDFLAGS) -o sym2img $(EXE_LIBS) + + legend: $(LIBMAP_STATIC) legend.o mapserver.h +- $(LD) $(CFLAGS) legend.o $(EXE_LDFLAGS) -o legend ++ $(LD) $(CFLAGS) legend.o $(LDFLAGS) -o legend $(EXE_LIBS) + + scalebar: $(LIBMAP_STATIC) scalebar.o mapserver.h +- $(LD) $(CFLAGS) scalebar.o $(EXE_LDFLAGS) -o scalebar ++ $(LD) $(CFLAGS) scalebar.o $(LDFLAGS) -o scalebar $(EXE_LIBS) + + mapserv: mapserv.h maptile.h $(LIBMAP_STATIC) mapserv.o cgiutil.o maptile.o mapserver.h +- $(LD) $(CFLAGS) mapserv.o cgiutil.o maptile.o $(EXE_LDFLAGS) -o mapserv ++ $(LD) $(CFLAGS) mapserv.o cgiutil.o maptile.o $(LDFLAGS) -o mapserv $(EXE_LIBS) + + shpindex: $(LIBMAP_STATIC) shpindex.o mapserver.h +- $(LD) $(CFLAGS) shpindex.o $(EXE_LDFLAGS) -o shpindex ++ $(LD) $(CFLAGS) shpindex.o $(LDFLAGS) -o shpindex $(EXE_LIBS) + + shptree: $(LIBMAP_STATIC) shptree.o mapserver.h +- $(LD) $(CFLAGS) shptree.o $(EXE_LDFLAGS) -o shptree ++ $(LD) $(CFLAGS) shptree.o $(LDFLAGS) -o shptree $(EXE_LIBS) + + shptreevis: $(LIBMAP_STATIC) shptreevis.o mapserver.h +- $(LD) $(CFLAGS) shptreevis.o $(EXE_LDFLAGS) -o shptreevis ++ $(LD) $(CFLAGS) shptreevis.o $(LDFLAGS) -o shptreevis $(EXE_LIBS) + + shptreetst: $(LIBMAP_STATIC) shptreetst.o mapserver.h +- $(LD) $(CFLAGS) shptreetst.o $(EXE_LDFLAGS) -o shptreetst ++ $(LD) $(CFLAGS) shptreetst.o $(LDFLAGS) -o shptreetst $(EXE_LIBS) + + sortshp: $(LIBMAP_STATIC) sortshp.o mapserver.h +- $(LD) $(CFLAGS) sortshp.o $(EXE_LDFLAGS) -o sortshp ++ $(LD) $(CFLAGS) sortshp.o $(LDFLAGS) -o sortshp $(EXE_LIBS) + + tile4ms: $(LIBMAP_STATIC) tile4ms.o mapserver.h +- $(LD) $(CFLAGS) tile4ms.o $(EXE_LDFLAGS) -o tile4ms ++ $(LD) $(CFLAGS) tile4ms.o $(LDFLAGS) -o tile4ms $(EXE_LIBS) + + msencrypt: $(LIBMAP_STATIC) msencrypt.o mapserver.h +- $(LD) $(CFLAGS) msencrypt.o $(EXE_LDFLAGS) -o msencrypt ++ $(LD) $(CFLAGS) msencrypt.o $(LDFLAGS) -o msencrypt $(EXE_LIBS) + + testexpr: $(LIBMAP_STATIC) testexpr.o mapparser.o maplexer.o mapserver.h +- $(LD) $(CFLAGS) testexpr.o $(EXE_LDFLAGS) -o testexpr ++ $(LD) $(CFLAGS) testexpr.o $(LDFLAGS) -o testexpr $(EXE_LIBS) + + testcopy: $(LIBMAP_STATIC) testcopy.o mapcopy.o mapserver.h +- $(LD) $(CFLAGS) testcopy.o $(EXE_LDFLAGS) -o testcopy ++ $(LD) $(CFLAGS) testcopy.o $(LDFLAGS) -o testcopy $(EXE_LIBS) + + test_mapcrypto: $(LIBMAP_STATIC) mapcrypto.c mapserver.h +- $(CC) $(CFLAGS) mapcrypto.c -DTEST_MAPCRYPTO $(EXE_LDFLAGS) -o test_mapcrypto ++ $(CC) $(CFLAGS) mapcrypto.c -DTEST_MAPCRYPTO $(LDFLAGS) -o test_mapcrypto $(EXE_LIBS) + + mapscriptvars: Makefile + touch mapscriptvars + pwd > mapscriptvars + echo $(IGNORE_MISSING_DATA) $(USE_POINT_Z_M) $(STRINGS) @ALL_ENABLED@ >> mapscriptvars + echo -I. $(PROJ_INC) $(GD_INC) $(TTF_INC) $(JPEG_INC) $(SDE_INC) $(OGR_INC) $(GDAL_INC) $(GEOS_INC) >> mapscriptvars +- echo $(EXE_LDFLAGS) >> mapscriptvars ++ echo $(EXE_LIBS) >> mapscriptvars + echo $(STATIC_LIBS) >> mapscriptvars + grep '#define MS_VERSION ' mapserver.h >> mapscriptvars + diff --git a/sci-geosciences/mapserver/files/6.0.0_rc1-php_ldflags.patch b/sci-geosciences/mapserver/files/6.0.0_rc1-php_ldflags.patch new file mode 100644 index 000000000000..706bae4ce7b1 --- /dev/null +++ b/sci-geosciences/mapserver/files/6.0.0_rc1-php_ldflags.patch @@ -0,0 +1,15 @@ +--- mapserver-6.0.0-rc1.old/mapscript/php/Makefile.in 2011-05-02 12:10:03.000000000 +0200 ++++ mapserver-6.0.0-rc1/mapscript/php/Makefile.in 2011-05-02 23:43:15.000000000 +0200 +@@ -86,10 +86,10 @@ + + + php_mapscript.so: $(PHPMS_OBJS) ../../libmapserver.a +- $(LD) -o $@ $(PHPMS_OBJS) $(MS_LIBS) ++ $(LD) -o $@ $(LDFLAGS) $(PHPMS_OBJS) $(MS_LIBS) + + php_proj.so: $(PHPPROJ_OBJS) +- $(LD) -o $@ $(PHPPROJ_OBJS) $(MS_LIBS) ++ $(LD) -o $@ $(LDFLAGS) $(PHPPROJ_OBJS) $(MS_LIBS) + + %.o: %.c php_mapscript_util.h php_mapscript.h + $(CC) $(CFLAGS112) -c -o $@ $< diff --git a/sci-geosciences/mapserver/files/6.1.0-php-5.4.patch b/sci-geosciences/mapserver/files/6.1.0-php-5.4.patch new file mode 100644 index 000000000000..e81fd90195f9 --- /dev/null +++ b/sci-geosciences/mapserver/files/6.1.0-php-5.4.patch @@ -0,0 +1,69 @@ +diff -aurN mapserver-6.0.1.orig/mapscript/php/image.c mapserver-6.0.1/mapscript/php/image.c +--- mapserver-6.0.1.orig/mapscript/php/image.c 2011-04-05 11:15:06.000000000 -0400 ++++ mapserver-6.0.1/mapscript/php/image.c 2015-02-04 14:29:03.164357015 -0500 +@@ -303,10 +303,18 @@ + /* no filename - read stdout */ + + /* if there is no output buffer active, set the header */ +- if (OG(ob_nesting_level)<=0) +- { +- php_header(TSRMLS_C); +- } ++ //handle changes in PHP 5.4.x ++ #if PHP_VERSION_ID < 50399 ++ if (OG(ob_nesting_level)<=0) ++ { ++ php_header(TSRMLS_C); ++ } ++ #else ++ if (php_output_get_level(TSRMLS_C)<=0) ++ { ++ php_header(TSRMLS_C); ++ } ++ #endif + + + if (MS_RENDERER_PLUGIN(php_image->image->format)) +diff -aurN mapserver-6.0.1.orig/mapscript/php/php_mapscript.c mapserver-6.0.1/mapscript/php/php_mapscript.c +--- mapserver-6.0.1.orig/mapscript/php/php_mapscript.c 2011-04-05 23:05:02.000000000 -0400 ++++ mapserver-6.0.1/mapscript/php/php_mapscript.c 2015-02-04 14:27:52.296567202 -0500 +@@ -899,7 +899,7 @@ + + } + +-function_entry mapscript_functions[] = { ++zend_function_entry mapscript_functions[] = { + PHP_FE(ms_GetVersion, NULL) + PHP_FE(ms_GetVersionInt, NULL) + PHP_FE(ms_newLineObj, NULL) +diff -aurN mapserver-6.0.1.orig/mapscript/php/php_mapscript_util.c mapserver-6.0.1/mapscript/php/php_mapscript_util.c +--- mapserver-6.0.1.orig/mapscript/php/php_mapscript_util.c 2011-04-04 13:50:20.000000000 -0400 ++++ mapserver-6.0.1/mapscript/php/php_mapscript_util.c 2015-02-04 14:27:27.477341249 -0500 +@@ -42,7 +42,12 @@ + zobj->ce = ce; + ALLOC_HASHTABLE(zobj->properties); + zend_hash_init(zobj->properties, 0, NULL, ZVAL_PTR_DTOR, 0); +- zend_hash_copy(zobj->properties, &ce->default_properties, (copy_ctor_func_t) zval_add_ref,(void *) &temp, sizeof(zval *)); ++ //handle changes in PHP 5.4.x ++ #if PHP_VERSION_ID < 50399 ++ zend_hash_copy(zobj->properties, &ce->default_properties, (copy_ctor_func_t) zval_add_ref,(void *) &temp, sizeof(zval *)); ++ #else ++ object_properties_init(zobj, ce); ++ #endif + retval.handle = zend_objects_store_put(zobj, NULL, (zend_objects_free_object_storage_t)zend_objects_free_object, NULL TSRMLS_CC); + retval.handlers = &mapscript_std_object_handlers; + return retval; +@@ -59,7 +64,12 @@ + zobj->ce = ce; + ALLOC_HASHTABLE(zobj->properties); + zend_hash_init(zobj->properties, 0, NULL, ZVAL_PTR_DTOR, 0); +- zend_hash_copy(zobj->properties, &ce->default_properties, (copy_ctor_func_t) zval_add_ref,(void *) &temp, sizeof(zval *)); ++ //handle changes in PHP 5.4.x ++ #if PHP_VERSION_ID < 50399 ++ zend_hash_copy(zobj->properties, &ce->default_properties, (copy_ctor_func_t) zval_add_ref,(void *) &temp, sizeof(zval *)); ++ #else ++ object_properties_init(zobj, ce); ++ #endif + retval.handle = zend_objects_store_put(zobj, NULL, (zend_objects_free_object_storage_t)zend_objects_free_object, NULL TSRMLS_CC); + retval.handlers = object_handlers; + return retval; diff --git a/sci-geosciences/mapserver/files/mapserver_tcl.patch-r1 b/sci-geosciences/mapserver/files/mapserver_tcl.patch-r1 new file mode 100644 index 000000000000..845cad6e3bd1 --- /dev/null +++ b/sci-geosciences/mapserver/files/mapserver_tcl.patch-r1 @@ -0,0 +1,44 @@ +--- mapscript/tcl/Makefile.in.orig 2001-10-26 00:56:39.000000000 +0200 ++++ mapscript/tcl/Makefile.in 2008-02-04 11:04:22.000000000 +0100 +@@ -25,7 +25,7 @@ + TCL_LIBS = @TCL_LIBS@ + LIBS = @TCL_LIBS@ + TCL_DBGX = @TCL_DBGX@ +-LIB_RUNTIME_DIR = @TCL_EXEC_PREFIX@/lib:@TCL_EXEC_PREFIX@/lib/$(PACKAGEDIR):@TCL_PREFIX@/lib:@MAPSERVERHOME@ ++LIB_RUNTIME_DIR = @TCL_EXEC_PREFIX@/@libdir@:@TCL_EXEC_PREFIX@/@libdir@/$(PACKAGEDIR):@TCL_PREFIX@/@libdir@:@MAPSERVERHOME@ + + MAPSERVERHOME = @MAPSERVERHOME@ + MAPSERVERDEFS = @MAPSERVERDEFS@ +@@ -69,14 +69,14 @@ + $(DLTARGET)$(TCL_SHLIB_SUFFIX): mapscript_wrap.o + + install: $(DLTARGET)$(TCL_SHLIB_SUFFIX) +- -mkdir $(TCL_EXEC_PREFIX)/lib/$(PACKAGEDIR) +- cp $(DLTARGET)$(TCL_SHLIB_SUFFIX) $(TCL_EXEC_PREFIX)/lib/$(PACKAGEDIR) ++ -mkdir $(TCL_EXEC_PREFIX)/@libdir@/$(PACKAGEDIR) ++ cp $(DLTARGET)$(TCL_SHLIB_SUFFIX) $(TCL_EXEC_PREFIX)/@libdir@/$(PACKAGEDIR) + chmod +x \ +- $(TCL_EXEC_PREFIX)/lib/$(PACKAGEDIR)/$(DLTARGET)$(TCL_SHLIB_SUFFIX) +- cp pkgIndex.tcl $(TCL_EXEC_PREFIX)/lib/$(PACKAGEDIR) +- cp mapscriptsupp.tcl $(TCL_EXEC_PREFIX)/lib/$(PACKAGEDIR) +- cp mapscriptsupp.html $(TCL_EXEC_PREFIX)/lib/$(PACKAGEDIR) +- cp mapscript_wrap.html $(TCL_EXEC_PREFIX)/lib/$(PACKAGEDIR) ++ $(TCL_EXEC_PREFIX)/@libdir@/$(PACKAGEDIR)/$(DLTARGET)$(TCL_SHLIB_SUFFIX) ++ cp pkgIndex.tcl $(TCL_EXEC_PREFIX)/@libdir@/$(PACKAGEDIR) ++ cp mapscriptsupp.tcl $(TCL_EXEC_PREFIX)/@libdir@/$(PACKAGEDIR) ++ cp mapscriptsupp.html $(TCL_EXEC_PREFIX)/@libdir@/$(PACKAGEDIR) ++ cp mapscript_wrap.html $(TCL_EXEC_PREFIX)/@libdir@/$(PACKAGEDIR) + + + useprebuilt: +--- mapscript/mapscript.i 2005-11-22 22:44:48.000000000 +0100 ++++ mapscript/mapscript.i 2006-04-12 23:47:23.000000000 +0200 +@@ -206,7 +206,7 @@ + + /* Tcl */ + #ifdef SWIGTCL8 +-%include "tclmodule.i" ++/* %include "tclmodule.i" */ + #endif /* SWIGTCL8 */ + + /* diff --git a/sci-geosciences/mapserver/mapserver-6.0.1-r2.ebuild b/sci-geosciences/mapserver/mapserver-6.0.1-r2.ebuild new file mode 100644 index 000000000000..6766c1d2e838 --- /dev/null +++ b/sci-geosciences/mapserver/mapserver-6.0.1-r2.ebuild @@ -0,0 +1,234 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +MY_P="${PN}-${PV/_/-}" + +PHP_EXT_OPTIONAL_USE="php" +PHP_EXT_NAME="php_mapscript" +PHP_EXT_S="${WORKDIR}/${MY_P}/mapscript/php/" +PHP_EXT_SKIP_PHPIZE="no" +USE_PHP="php5-4 php5-5" + +PYTHON_DEPEND="python? 2" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="3.* *-jython" +PYTHON_MODNAME="mapscript.py" + +#USE_RUBY="ruby18 ruby19" +#RUBY_OPTIONAL="yes" + +WEBAPP_MANUAL_SLOT=yes + +inherit eutils autotools depend.apache webapp distutils perl-module php-ext-source-r2 multilib # ruby-ng + +DESCRIPTION="OpenSource development environment for constructing spatially enabled Internet-web applications" +HOMEPAGE="http://mapserver.org/" +SRC_URI="http://download.osgeo.org/mapserver/${MY_P}.tar.gz" + +LICENSE="MIT" +KEYWORDS="~amd64 ~x86" +SLOT="0" +IUSE="bidi cairo gdal geos mysql opengl perl php postgis proj python threads tiff xml xslt" # ruby php tcl + +REQUIRED_USE="php? ( ^^ ( php_targets_php5-4 php_targets_php5-5 ) )" + +RDEPEND=" + !${CATEGORY}/${PN}:${PV} + dev-libs/expat + dev-libs/fcgi + >=media-libs/gd-2.0.12[truetype,jpeg,png,zlib] + media-libs/giflib + net-misc/curl + virtual/jpeg + virtual/libiconv + x11-libs/agg + bidi? ( dev-libs/fribidi ) + cairo? ( x11-libs/cairo ) + gdal? ( >=sci-libs/gdal-1.8.0 ) + geos? ( sci-libs/geos ) + mysql? ( virtual/mysql ) + opengl? ( + media-libs/ftgl + media-libs/mesa + ) + perl? ( dev-lang/perl:= ) + postgis? ( dev-db/postgis ) + proj? ( sci-libs/proj net-misc/curl ) + tiff? ( + media-libs/tiff + sci-libs/libgeotiff + ) + xml? ( dev-libs/libxml2:2 ) + xslt? ( dev-libs/libxslt[crypt] ) +" +for i in perl python; do + SWIG_DEPEND+=" ${i}? ( >=dev-lang/swig-2.0 )" +done +DEPEND="${RDEPEND} ${SWIG_DEPEND}" +unset SWIG_DEPEND +unset i + +need_apache2 + +S=${WORKDIR}/${MY_P} + +_enter_build_dir() { + [[ -z ${1} ]] && die "Missing path argument" + local workdir=${1} + shift + [[ -z ${1} ]] && die "missing command argument" + + echo ">>> Running \"${@}\" in work directory \"${workdir}\"" + pushd "${workdir}" > /dev/null || die "Failed to enter directory" + ${@} || die + popd > /dev/null +} + +each_ruby_configure() { ${RUBY} extconf.rb || die ; } + +ext-source-r2_src_install() { + local slot + for slot in $(php_get_slots); do + php_init_slot_env ${slot} + insinto "${EXT_DIR}" + newins "${PHP_EXT_NAME}.so" "${PHP_EXT_NAME}.so" || die "Unable to install extension" + done + php-ext-source-r2_createinifiles +} + +pkg_setup() { + webapp_pkg_setup + use perl && perl_set_version + use python && python_pkg_setup + #use ruby && ruby-ng_pkg_setup +} + +src_unpack() { + # unpack A and then copy the php thingies into workdir/php-slot + php-ext-source-r2_src_unpack + # HACK: and then remove it and replace by symlink + for slot in $(php_get_slots); do + rm -rf "${WORKDIR}/${slot}" || die + ln -s "${PHP_EXT_S}" "${WORKDIR}/${slot}" || die + done +} + +src_prepare() { + epatch "${FILESDIR}/6.0.0_rc1-ldflags.patch" \ + "${FILESDIR}/6.0.0_rc1-bool.patch" \ + "${FILESDIR}/6.0.0_rc1-php_ldflags.patch" \ + "${FILESDIR}/6.1.0-php-5.4.patch" + + eautoreconf +} + +src_configure() { + local myopts + + if use gdal && use proj ; then + myopts+=" + --with-wfs + --with-wcs + --with-wfsclient + --with-wmsclient + " + use xml && myopts+=" --with-sos" + fi + + # some scripts require configure time options so place it here + if use php ; then + use php_targets_php5-4 && myopts+=" --with-php=${EPREFIX}/usr/$(get_libdir)/php5.4/include/php/" + use php_targets_php5-5 && myopts+=" --with-php=${EPREFIX}/usr/$(get_libdir)/php5.5/include/php/" + fi + + # sde is ESRI package that you have to buy first + # oraclespatial needs oracle server for testing/usage + # note that some options accept just path, they are not on/off switches! + econf \ + --without-oraclespatial \ + --without-sde \ + --with-libiconv \ + --with-jpeg \ + --with-gd \ + --with-gif="${EPREFIX}/usr/" \ + --with-wms \ + --with-kml \ + --with-curl-config \ + --with-agg-svg-symbols \ + --with-httpd="${APACHE_BIN}" \ + --with-fastcgi \ + $(use_with opengl ogl) \ + $(use_with opengl ftgl) \ + $(use_with proj) \ + $(use_with threads) \ + $(use_with geos) \ + $(use_with gdal) \ + $(use_with gdal ogr) \ + $(use_with postgis) \ + $(use_with mysql) \ + $(use_with xml xml2-config) \ + $(use_with xslt) \ + $(use_with xslt xml-mapfile) \ + $(use_with bidi fribidi-config) \ + $(use_with cairo) \ + ${myopts} + + #use ruby && _enter_build_dir "${S}/mapscript/ruby" "ln -s ../mapscript.i ./" + #use ruby && _enter_build_dir "${S}/mapscript/ruby" "ruby-ng_src_configure" +} + +src_compile() { + default + use python && _enter_build_dir "${S}/mapscript/python" "distutils_src_compile" + use perl && _enter_build_dir "${S}/mapscript/perl" "perl-module_src_prep" + use perl && _enter_build_dir "${S}/mapscript/perl" "perl-module_src_compile" + #use php && php-ext-source-r2_src_compile # already compiled by the emake all + #use ruby && _enter_build_dir "${S}/mapscript/ruby" "ruby-ng_src_compile" +} + +src_install() { + local step="Installing" + local extra_dir="fonts tests tests/vera symbols" + local i + + dobin shp2img legend shptree shptreevis shp2img legend shptreetst scalebar \ + sortshp tile4ms msencrypt mapserver-config + + dodoc INSTALL README HISTORY.TXT + + for i in ${extra_dir}; do + docinto /usr/share/doc/${PF}/${i} + dodoc -r ${i}/* || die + done + + use python && _enter_build_dir "${S}/mapscript/python" "distutils_src_install" + use perl && _enter_build_dir "${S}/mapscript/perl" "perl-module_src_install" + use perl && _enter_build_dir "${S}/mapscript/perl" "perl_delete_localpod" + use php && ext-source-r2_src_install + #use ruby && _enter_build_dir "${S}/mapscript/ruby" "ruby-ng_src_install" + + webapp_src_preinst + exeinto "${MY_CGIBINDIR}" + doexe "${S}/mapserv" + webapp_src_install +} + +pkg_preinst() { + use perl && perl_set_version +} + +pkg_postinst() { + webapp_pkg_postinst + use python && distutils_pkg_postinst +} + +pkg_prerm() { + webapp_pkg_prerm +} + +pkg_postrm() { + use python && distutils_pkg_postrm +} diff --git a/sci-geosciences/mapserver/mapserver-6.0.1-r3.ebuild b/sci-geosciences/mapserver/mapserver-6.0.1-r3.ebuild new file mode 100644 index 000000000000..5e981d3c3ea5 --- /dev/null +++ b/sci-geosciences/mapserver/mapserver-6.0.1-r3.ebuild @@ -0,0 +1,221 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +MY_P="${PN}-${PV/_/-}" + +PHP_EXT_OPTIONAL_USE="php" +PHP_EXT_NAME="php_mapscript" +PHP_EXT_S="${WORKDIR}/${MY_P}/mapscript/php/" +PHP_EXT_SKIP_PHPIZE="no" +USE_PHP="php5-4 php5-5" + +PYTHON_COMPAT=( python2_7 ) + +#USE_RUBY="ruby18 ruby19" +#RUBY_OPTIONAL="yes" + +WEBAPP_MANUAL_SLOT=yes + +inherit eutils autotools depend.apache webapp distutils-r1 perl-module php-ext-source-r2 multilib # ruby-ng + +DESCRIPTION="OpenSource development environment for constructing spatially enabled Internet-web applications" +HOMEPAGE="http://mapserver.org/" +SRC_URI="http://download.osgeo.org/mapserver/${MY_P}.tar.gz" + +LICENSE="MIT" +KEYWORDS="~amd64 ~x86" +SLOT="0" +IUSE="bidi cairo gdal geos mysql opengl perl php postgis proj python threads tiff xml xslt" # ruby php tcl + +REQUIRED_USE="php? ( ^^ ( php_targets_php5-4 php_targets_php5-5 ) )" + +RDEPEND=" + !${CATEGORY}/${PN}:${PV} + dev-libs/expat + dev-libs/fcgi + >=media-libs/gd-2.0.12[truetype,jpeg,png,zlib] + media-libs/giflib + net-misc/curl + virtual/jpeg:= + virtual/libiconv + x11-libs/agg + bidi? ( dev-libs/fribidi ) + cairo? ( x11-libs/cairo ) + gdal? ( >=sci-libs/gdal-1.8.0 ) + geos? ( sci-libs/geos ) + mysql? ( virtual/mysql ) + opengl? ( + media-libs/ftgl + media-libs/mesa + ) + perl? ( dev-lang/perl:= ) + postgis? ( dev-db/postgis ) + proj? ( sci-libs/proj net-misc/curl ) + tiff? ( + media-libs/tiff:= + sci-libs/libgeotiff + ) + xml? ( dev-libs/libxml2:2 ) + xslt? ( dev-libs/libxslt[crypt] ) +" +for i in perl python; do + SWIG_DEPEND+=" ${i}? ( >=dev-lang/swig-2.0 )" +done +DEPEND="${RDEPEND} ${SWIG_DEPEND}" +unset SWIG_DEPEND +unset i + +need_apache2 + +S=${WORKDIR}/${MY_P} + +_enter_build_dir() { + [[ -z ${1} ]] && die "Missing path argument" + local workdir=${1} + shift + [[ -z ${1} ]] && die "missing command argument" + + echo ">>> Running \"${@}\" in work directory \"${workdir}\"" + pushd "${workdir}" > /dev/null || die "Failed to enter directory" + ${@} || die + popd > /dev/null +} + +each_ruby_configure() { ${RUBY} extconf.rb || die ; } + +ext-source-r2_src_install() { + local slot + for slot in $(php_get_slots); do + php_init_slot_env ${slot} + insinto "${EXT_DIR}" + newins "${PHP_EXT_NAME}.so" "${PHP_EXT_NAME}.so" || die "Unable to install extension" + done + php-ext-source-r2_createinifiles +} + +pkg_setup() { + webapp_pkg_setup + use perl && perl_set_version + #use ruby && ruby-ng_pkg_setup +} + +src_unpack() { + # unpack A and then copy the php thingies into workdir/php-slot + php-ext-source-r2_src_unpack + # HACK: and then remove it and replace by symlink + for slot in $(php_get_slots); do + rm -rf "${WORKDIR}/${slot}" || die + ln -s "${PHP_EXT_S}" "${WORKDIR}/${slot}" || die + done +} + +src_prepare() { + epatch "${FILESDIR}/6.0.0_rc1-ldflags.patch" \ + "${FILESDIR}/6.0.0_rc1-bool.patch" \ + "${FILESDIR}/6.0.0_rc1-php_ldflags.patch" \ + "${FILESDIR}/6.1.0-php-5.4.patch" + + eautoreconf +} + +src_configure() { + local myopts + + if use gdal && use proj ; then + myopts+=" + --with-wfs + --with-wcs + --with-wfsclient + --with-wmsclient + " + use xml && myopts+=" --with-sos" + fi + + # some scripts require configure time options so place it here + if use php ; then + use php_targets_php5-4 && myopts+=" --with-php=${EPREFIX}/usr/$(get_libdir)/php5.4/include/php/" + use php_targets_php5-5 && myopts+=" --with-php=${EPREFIX}/usr/$(get_libdir)/php5.5/include/php/" + fi + + # sde is ESRI package that you have to buy first + # oraclespatial needs oracle server for testing/usage + # note that some options accept just path, they are not on/off switches! + econf \ + --without-oraclespatial \ + --without-sde \ + --with-libiconv \ + --with-jpeg \ + --with-gd \ + --with-gif="${EPREFIX}/usr/" \ + --with-wms \ + --with-kml \ + --with-curl-config \ + --with-agg-svg-symbols \ + --with-httpd="${APACHE_BIN}" \ + --with-fastcgi \ + $(use_with opengl ogl) \ + $(use_with opengl ftgl) \ + $(use_with proj) \ + $(use_with threads) \ + $(use_with geos) \ + $(use_with gdal) \ + $(use_with gdal ogr) \ + $(use_with postgis) \ + $(use_with mysql) \ + $(use_with xml xml2-config) \ + $(use_with xslt) \ + $(use_with xslt xml-mapfile) \ + $(use_with bidi fribidi-config) \ + $(use_with cairo) \ + ${myopts} + + #use ruby && _enter_build_dir "${S}/mapscript/ruby" "ln -s ../mapscript.i ./" + #use ruby && _enter_build_dir "${S}/mapscript/ruby" "ruby-ng_src_configure" +} + +src_compile() { + default + use python && _enter_build_dir "${S}/mapscript/python" "distutils-r1_src_compile" + use perl && _enter_build_dir "${S}/mapscript/perl" "perl-module_src_prep" + use perl && _enter_build_dir "${S}/mapscript/perl" "perl-module_src_compile" + #use php && php-ext-source-r2_src_compile # already compiled by the emake all + #use ruby && _enter_build_dir "${S}/mapscript/ruby" "ruby-ng_src_compile" +} + +src_install() { + local step="Installing" + local extra_dir="fonts tests tests/vera symbols" + local i + + dobin shp2img legend shptree shptreevis shp2img legend shptreetst scalebar \ + sortshp tile4ms msencrypt mapserver-config + + dodoc INSTALL README HISTORY.TXT + + for i in ${extra_dir}; do + docinto /usr/share/doc/${PF}/${i} + dodoc -r ${i}/* || die + done + + use python && _enter_build_dir "${S}/mapscript/python" "distutils-r1_src_install" + use perl && _enter_build_dir "${S}/mapscript/perl" "perl-module_src_install" + use perl && _enter_build_dir "${S}/mapscript/perl" "perl_delete_localpod" + use php && ext-source-r2_src_install + #use ruby && _enter_build_dir "${S}/mapscript/ruby" "ruby-ng_src_install" + + webapp_src_preinst + exeinto "${MY_CGIBINDIR}" + doexe "${S}/mapserv" + webapp_src_install +} + +pkg_preinst() { + use perl && perl_set_version +} + +pkg_prerm() { + webapp_pkg_prerm +} diff --git a/sci-geosciences/mapserver/metadata.xml b/sci-geosciences/mapserver/metadata.xml new file mode 100644 index 000000000000..a4103a88dd1e --- /dev/null +++ b/sci-geosciences/mapserver/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>sci-geosciences</herd> + <use> + <flag name="gdal">Enable <pkg>sci-libs/gdal</pkg> library support</flag> + <flag name="geos">Enable <pkg>sci-libs/geos</pkg> library support</flag> + <flag name="postgis">Enable <pkg>dev-db/postgis</pkg> support</flag> + <flag name="proj">Enable <pkg>sci-libs/proj</pkg> library support (geographic projections)</flag> + <flag name="xslt">Enable xslt and exslt support xml-mapfile support</flag> + </use> +</pkgmetadata> |