summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatti Bickel <mabi@gentoo.org>2010-08-09 22:37:48 +0000
committerMatti Bickel <mabi@gentoo.org>2010-08-09 22:37:48 +0000
commitb8e63cf5f7d8ba69c0d3ec5511fac5739bccfbd1 (patch)
treec66fea4d2d3bb5573444e1c9060249150223d964 /dev-php/roadsend-php
parentUpdate HOMEPAGE. Thanks to Michael Weber (xmw) for pointing this out (diff)
downloadhistorical-b8e63cf5f7d8ba69c0d3ec5511fac5739bccfbd1.tar.gz
historical-b8e63cf5f7d8ba69c0d3ec5511fac5739bccfbd1.tar.bz2
historical-b8e63cf5f7d8ba69c0d3ec5511fac5739bccfbd1.zip
bug #306591
Package-Manager: portage-2.1.8.3/cvs/Linux x86_64
Diffstat (limited to 'dev-php/roadsend-php')
-rw-r--r--dev-php/roadsend-php/ChangeLog10
-rw-r--r--dev-php/roadsend-php/Manifest4
-rw-r--r--dev-php/roadsend-php/files/roadsend-php-2.9.9_p1-flags.patch339
-rw-r--r--dev-php/roadsend-php/roadsend-php-2.9.9_p1-r1.ebuild132
4 files changed, 483 insertions, 2 deletions
diff --git a/dev-php/roadsend-php/ChangeLog b/dev-php/roadsend-php/ChangeLog
index b082592c41b9..8da34ac7599f 100644
--- a/dev-php/roadsend-php/ChangeLog
+++ b/dev-php/roadsend-php/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for dev-php/roadsend-php
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-php/roadsend-php/ChangeLog,v 1.14 2010/06/11 19:08:44 yngwin Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-php/roadsend-php/ChangeLog,v 1.15 2010/08/09 22:37:47 mabi Exp $
+
+*roadsend-php-2.9.9_p1-r1 (09 Aug 2010)
+
+ 09 Aug 2010; Matti Bickel <mabi@gentoo.org>
+ +roadsend-php-2.9.9_p1-r1.ebuild,
+ +files/roadsend-php-2.9.9_p1-flags.patch:
+ fix upstream build system to respect CFLAGS/LDFLAGS (bug #306591), credits
+ to Doktor Notor <notordoktor@gmail.com> for ebuild and patch
11 Jun 2010; Ben de Groot <yngwin@gentoo.org> metadata.xml:
Removing myself as proxy
diff --git a/dev-php/roadsend-php/Manifest b/dev-php/roadsend-php/Manifest
index dbd1a9b7ca34..657b6fa098b5 100644
--- a/dev-php/roadsend-php/Manifest
+++ b/dev-php/roadsend-php/Manifest
@@ -1,4 +1,6 @@
+AUX roadsend-php-2.9.9_p1-flags.patch 12713 RMD160 68c5621313ba2cb3d0b82fa988a4a75420d0ed6f SHA1 1c20bba47cfac8e2e46ed4886e2d680704716d4d SHA256 e2845a8c5259f6f5dcf366daef5e1d45ef3057ec4917c0d8c45ee9f626c5da76
DIST roadsend-php-2.9.9-p1.tar.bz2 2866273 RMD160 9dd0918daf8bec9cf82493cdd800573879af39d4 SHA1 b8c9d91fc02f9e05f6c883a2a387f1e290724af6 SHA256 4deb375aea13ea06aa99c163c50598909fa4b5dc223861457d1694e0ab7985f2
+EBUILD roadsend-php-2.9.9_p1-r1.ebuild 4604 RMD160 3a5b99ad6b9a870900c560d3e33c1e5a82dfd18b SHA1 8cc6ed2ad8f19b1326b1225b637e4d1407209453 SHA256 eb8f2288085a09ff1fdd1f7292430016740331b019246d67892a59b9e7876578
EBUILD roadsend-php-2.9.9_p1.ebuild 1244 RMD160 190559d18a933301aa9c914c531fd011c02eb471 SHA1 e1696b286d216aa5acde47d34fb8ab6d8fc25118 SHA256 7e0d73c2064a114cc84a045462e154a25965d5b1bf6322b4a39d9dde4621cce2
-MISC ChangeLog 2747 RMD160 33a448ec3b4ce70de504b8b5359a37ef0173eef5 SHA1 1942c5a8a93418f08bd7a15a6def9db0f9e279ab SHA256 00887826079a137caf50532b47ca2e9ba1589cdc7fa66992e1bcf29196f0f510
+MISC ChangeLog 3053 RMD160 12a15515d43d8ef24d02180653aeabc4a9670d28 SHA1 e4f1ad84e87ae2be2d14f39c79d1ce88d26b0d74 SHA256 e8351852770ad862802ccbab830f52f5e43638297632433630bb5650d31cfde9
MISC metadata.xml 803 RMD160 a3255e695196682933f6f300715350c52e509a10 SHA1 d1d0241e5a5e8e5847fa73614a60eb0d60506f29 SHA256 f91a747968c5dbb473dfdf038f6ff581739c4514e8450dfb30dcee6c870bf0b5
diff --git a/dev-php/roadsend-php/files/roadsend-php-2.9.9_p1-flags.patch b/dev-php/roadsend-php/files/roadsend-php-2.9.9_p1-flags.patch
new file mode 100644
index 000000000000..4962e367a830
--- /dev/null
+++ b/dev-php/roadsend-php/files/roadsend-php-2.9.9_p1-flags.patch
@@ -0,0 +1,339 @@
+--- configure.in.orig 2009-04-24 18:10:50.000000000 +0200
++++ configure.in 2010-02-23 23:25:50.000000000 +0100
+@@ -472,11 +472,18 @@
+ AC_CONFIG_FILES([doc/pcc.conf])
+ AC_CONFIG_FILES([sa-tests/pcc-test.conf])
+ AC_CONFIG_FILES([webconnect/Makefile])
++AC_CONFIG_FILES([webconnect/fastcgi/Makefile])
++AC_CONFIG_FILES([webconnect/micro/Makefile])
++AC_CONFIG_FILES([compiler/Makefile])
++AC_CONFIG_FILES([tools/c-interface/Makefile])
++AC_CONFIG_FILES([tools/profiler/Makefile])
++AC_CONFIG_FILES([tools/readline/Makefile])
++AC_CONFIG_FILES([runtime/Makefile])
+ AC_CONFIG_FILES([runtime/php-ext/pdo/Makefile])
+ AC_CONFIG_FILES([runtime/php-ext/pdo/pdo_class.php])
+ AC_CONFIG_FILES([compiler/config.scm])
+
+-#AC_CONFIG_SUBDIRS([tools/libwebserver])
++AC_CONFIG_SUBDIRS([tools/libwebserver])
+ AC_OUTPUT
+
+ dnl ==========================================================================
+--- Makefile.config.in.orig 2010-02-23 13:47:43.000000000 +0100
++++ Makefile.config.in 2010-02-23 14:07:38.000000000 +0100
+@@ -28,8 +28,8 @@
+ dllcmd = gcc -shared -o $(1) -Wl,--enable-auto-import,--enable-auto-image-base,--out-implib,$(1).a
+ dllcmd_i = gcc -shared -o $(1) -Wl,--enable-auto-import,--enable-auto-image-base,--out-implib,$(1).a
+ else
+-dllcmd = gcc -shared -o $(1)
+-dllcmd_i = gcc -shared -o $(1)
++dllcmd = $(CC) -shared -o $(1) $(LDFLAGS)
++dllcmd_i = $(CC) -shared -o $(1) $(LDFLAGS)
+ endif
+ endif
+
+@@ -72,6 +72,7 @@
+ # std
+ STD_CFLAGS = @STD_CFLAGS@
+ STD_LIBS = @STD_LIBS@
++STD_LDFLAGS = @STD_LDFLAGS@
+
+ # mysql
+ MYSQL_CFLAGS = @MYSQL_CFLAGS@
+--- bigloo-rules.mk.orig 2010-02-23 23:59:38.000000000 +0100
++++ bigloo-rules.mk 2010-02-23 23:56:23.000000000 +0100
+@@ -28,14 +28,17 @@
+
+ BHEAPFLAGS = -unsafe -mkaddheap -mkaddlib -L $(BGL_DEFAULT_LIB_DIR)
+
++BCOMMONFLAGS += @@CFLAGS@@ @@LDFLAGS@@
++CCOMMONFLAGS += $(CFLAGS)
++
+ # -fsharing?
+ # -mkaddlib shortens our startup time because it changes bigloo's constant allocation mode
+ BSAFEFLAGS = -mkaddlib -L $(BGL_DEFAULT_LIB_DIR) -unsafev -copt -D$(PCC_OS) -srfi $(PCC_OS) -O3 -g -cg +rm $(PROFILEFLAGS) $(BCOMMONFLAGS)
+-BUNSAFEFLAGS = -mkaddlib -L $(BGL_DEFAULT_LIB_DIR) -copt -D$(PCC_OS) -srfi $(PCC_OS) -srfi unsafe -O6 -unsafe $(BCOMMONFLAGS)
++BUNSAFEFLAGS = -mkaddlib -L $(BGL_DEFAULT_LIB_DIR) -copt -D$(PCC_OS) -srfi $(PCC_OS) -srfi unsafe -O6 -unsafe $(BCOMMONFLAGS)
+
+ # the -srfi bit makes cond-expand work in scheme code
+-CSAFEFLAGS = -D$(PCC_OS) -O -g $(PROFILEFLAGS) $(CCOMMONFLAGS)
+-CUNSAFEFLAGS = -D$(PCC_OS) -O4 $(CCOMMONFLAGS)
++CSAFEFLAGS = -D$(PCC_OS) $(CFLAGS) $(PROFILEFLAGS) $(CCOMMONFLAGS)
++CUNSAFEFLAGS = -D$(PCC_OS) $(CFLAGS) $(CCOMMONFLAGS) $(CCOMMONFLAGS)
+
+ CPPSAFEFLAGS = $(CSAFEFLAGS)
+ CPPUNSAFEFLAGS = $(CUNSAFEFLAGS)
+--- runtime/php-ext/php-extensions.mk.orig 2010-02-23 18:41:31.000000000 +0100
++++ runtime/php-ext/php-extensions.mk 2010-02-23 18:42:22.000000000 +0100
+@@ -21,7 +21,7 @@
+ MY_TESTDIR = $(MY_DIR)tests/
+ MY_TESTOUTDIR = $(MY_TESTDIR)testoutput/
+
+-PCC_COMMON = -v -L $(PCC_ROOT)/libs -L $(BIGLOO_LIB_PATH)
++PCC_COMMON = -v -L $(PCC_ROOT)/libs -L $(BIGLOO_LIB_PATH) @@CFLAGS@@ @@LDFLAGS@@ @@PCCCFLAGS@@ @@PCCLDFLAGS@@
+
+ TAGFILE = $(LIBNAME).tags
+ APIDOCFILE = $(TOPLEVEL)doc/api/ext-$(LIBNAME).texi
+--- tools/libwebserver/Makefile.in.orig 2007-08-07 14:18:32.000000000 +0200
++++ tools/libwebserver/Makefile.in 2010-02-23 20:49:28.000000000 +0100
+@@ -15,8 +15,8 @@
+ libdir=@libdir@
+ includedir=@includedir@
+
+-all:
+- cd src; $(MAKE)
++all:
++ cd src; $(MAKE)
+ # cd help; $(MAKE)
+ # cd examples; $(MAKE) -i
+
+@@ -28,7 +28,7 @@
+ # cd help; $(MAKE) clean
+
+
+-distclean:
++distclean:
+ @rm -f config.cache
+ @rm -f config.log
+ @rm -f config.status
+--- tools/libwebserver/src/Makefile.in.orig 2007-08-19 03:46:26.000000000 +0200
++++ tools/libwebserver/src/Makefile.in 2010-02-24 02:10:09.000000000 +0100
+@@ -1,4 +1,7 @@
++AR=@AR@
+ CC=@CC@
++RANLIB=@RANLIB@
++LDFLAGS=@LDFLAGS@
+ INCLUDE=-I../include @INCLUDE@
+ BIN=../bin
+ LIBDIR=@LIBDIR@
+@@ -16,13 +19,13 @@
+ CFLAGS=@CFLAGS@ -I ../Win32 -O2 -fomit-frame-pointer -Wall
+ else
+ ifeq ($(MACOSX),yes)
+-CFLAGS=@CFLAGS@ -fPIC -O2 -fomit-frame-pointer -Wall
++CFLAGS=@CFLAGS@ -fPIC -Wall
+ DLL=libwebserver.dylib
+ SHAREDFLAG=-r -dynamiclib -undefined dynamic_lookup -single_module
+ LIBS=@LIBS@
+ DEFINES=@DEFS@ -D_SERVER_VERSION="\"@VERSION@\""
+ else
+-CFLAGS=@CFLAGS@ -fPIC -O2 -fomit-frame-pointer -Wall
++CFLAGS=@CFLAGS@ -fPIC -Wall
+ DLL=libwebserver.so
+ SHAREDFLAG=-shared
+ LIBS=@LIBS@
+@@ -31,9 +34,9 @@
+ endif
+
+ all: $(OBJS) $(WIN_OBJS)
+- $(CC) $(WIN_LINKCMD) $(OBJS) $(WIN_OBJS) $(LIBS) $(LIBDIR) $(SHAREDFLAG) -o $(DLL)
+- ar -r libwebserver.a *.o
+- ranlib libwebserver.a
++ $(CC) $(WIN_LINKCMD) $(OBJS) $(WIN_OBJS) $(LIBS) $(LIBDIR) $(SHAREDFLAG) -o $(DLL) $(LDFLAGS)
++ $(AR) -r libwebserver.a *.o
++ $(RANLIB) libwebserver.a
+ #ifeq ($(MINGW32),no)
+ # mkdir -p $(BIN);
+ # cp libwebserver.a $(DLL) $(BIN)
+@@ -41,15 +44,15 @@
+
+
+ .c.o:
+- $(CC) -c $< $(CFLAGS) $(DEFINES) $(INCLUDE)
++ $(CC) -c $< $(CFLAGS) $(DEFINES) $(INCLUDE) $(LDFLAGS)
+
+
+
+
+
+ clean:
+- @echo "Cleaning...";
+- @rm -f *.o
++ @echo "Cleaning...";
++ @rm -f *.o
+ @rm Makefile
+ @rm -f $(DLL)
+ @rm -f libwebserver.a
+--- tools/libwebserver/configure.in.orig 2007-08-19 03:46:26.000000000 +0200
++++ tools/libwebserver/configure.in 2010-02-23 22:02:11.000000000 +0100
+@@ -4,7 +4,6 @@
+ AC_CONFIG_HEADER([include/config.h])
+ AC_CANONICAL_SYSTEM # for target_os
+
+-
+ openssl="disabled"
+ debug="disabled"
+ #VERSION="libwebserver v`pwd |sed \"s/^.*libwebserver\/\\(.*\\)$/\1/\"`"
+@@ -12,14 +11,19 @@
+ VERSION="libwebserver 0.53-RE"
+ RELEASE="0.53-RE"
+
+-
+ dnl Checks for programs.
+-CFLAGS="";
+ AC_PROG_CC
+ AC_PROG_MAKE_SET
+-AC_PROG_RANLIB
++AC_LIBTOOL_DLOPEN
++AC_PROG_LIBTOOL
+ AC_PROG_INSTALL
+ AC_MINGW32
++dnl AC_PROG_AR is not provided with autotools
++AC_ARG_VAR([AR],[path to ar])
++AC_PATH_PROGS(AR,ar)
++if test "$AR" = ""; then
++ AC_MSG_ERROR([ar is required])
++fi
+
+ case "$target_os" in
+ darwin*)
+@@ -55,7 +59,6 @@
+ AC_ARG_ENABLE(debug, [ --enable-debug],
+ [
+ AC_DEFINE(DEBUG,1)
+-CFLAGS="$CFLAGS -g"
+ debug="enabled"
+ VERSION="$VERSION (debug)"
+ ])
+--- runtime/Makefile.in.orig 2008-12-09 15:08:22.000000000 +0100
++++ runtime/Makefile.in 2010-02-24 00:02:56.000000000 +0100
+@@ -3,8 +3,8 @@
+
+ #-D_ISOC99_SOURCE is necessary for the isfinite and isnan macros
+ #-D_GNU_SOURCE includes _ISOC99_SOURCE and gives us some stuff for fstat
+-BCOMMONFLAGS = -L $(BGL_DEFAULT_LIB_DIR) -copt -D_GNU_SOURCE -L ../libs # -D_ISOC99_SOURCE
+-CCOMMONFLAGS = -I. -I$(BGL_DEFAULT_LIB_DIR)
++BCOMMONFLAGS += -L $(BGL_DEFAULT_LIB_DIR) -copt -D_GNU_SOURCE -L ../libs
++CCOMMONFLAGS += -I. -I$(BGL_DEFAULT_LIB_DIR)
+
+ SOURCE_LIST = php-runtime php-hash php-object php-ini utils opaque-math-binding \
+ grasstable url-rewriter signatures extended-streams constants finalizers \
+@@ -55,7 +55,7 @@
+ $(call dllcmd,../libs/libphp-runtime_$(SUV).$(SOEXT)) $(POPULATION) $(C_POPULATION) $(RUNTIME_DLL_LIBS)
+
+ ../libs/libphp-runtime_$(SUV).a: ../libs/php-runtime.heap $(STATIC_POPULATION) $(C_STATIC_POPULATION)
+- ar ruv ../libs/libphp-runtime_$(SUV).a $(STATIC_POPULATION) $(C_STATIC_POPULATION)
++ $(AR) ruv ../libs/libphp-runtime_$(SUV).a $(STATIC_POPULATION) $(C_STATIC_POPULATION)
+
+ ../libs/php-runtime.heap: php-runtime.sch $(SOURCE_FILES)
+ $(BIGLOO) $(BHEAPFLAGS) -heap-library php-runtime make-lib.scm -addheap ../libs/php-runtime.heap
+--- compiler/Makefile.in.orig 2008-12-09 15:08:22.000000000 +0100
++++ compiler/Makefile.in 2010-02-23 23:04:02.000000000 +0100
+@@ -1,8 +1,8 @@
+ PCC_ROOT = ..
+ include $(PCC_ROOT)/bigloo-rules.mk
+
+-BCOMMONFLAGS = $(READLINE_SRFI) -L $(BGL_DEFAULT_LIB_DIR) -L ../libs -I ../libs
+-CCOMMONFLAGS = -I. -I$(BGL_DEFAULT_LIB_DIR)
++BCOMMONFLAGS += $(READLINE_SRFI) -L $(BGL_DEFAULT_LIB_DIR) -L ../libs -I ../libs
++CCOMMONFLAGS += -I. -I$(BGL_DEFAULT_LIB_DIR)
+
+ # for pcc
+ SOURCE_LIST = ast lexers parser driver evaluate commandline containers \
+--- runtime/ext/extensions.mk.orig 2008-12-09 15:08:22.000000000 +0100
++++ runtime/ext/extensions.mk 2010-02-23 23:12:09.000000000 +0100
+@@ -38,8 +38,8 @@
+ MY_TESTDIR = $(MY_DIR)tests/
+ MY_TESTOUTDIR = $(MY_TESTDIR)testoutput/
+
+-CCOMMONFLAGS = -I. -I$(BGL_DEFAULT_LIB_DIR) $(C_SOURCE_FLAGS)
+-BCOMMONFLAGS = -L $(BGL_DEFAULT_LIB_DIR) $(BCFLAGS) $(PHPOO_INC) $(PHPOO_LIBS)
++CCOMMONFLAGS += -I. -I$(BGL_DEFAULT_LIB_DIR) $(C_SOURCE_FLAGS)
++BCOMMONFLAGS += -L $(BGL_DEFAULT_LIB_DIR) $(BCFLAGS) $(PHPOO_INC) $(PHPOO_LIBS)
+
+
+ TAGFILE = $(LIBNAME).tags
+--- tools/profiler/Makefile.in.orig 2010-02-23 23:14:33.000000000 +0100
++++ tools/profiler/Makefile.in 2010-02-23 23:15:49.000000000 +0100
+@@ -1,8 +1,8 @@
+ PCC_ROOT = ../..
+ include $(PCC_ROOT)/bigloo-rules.mk
+
+-BCOMMONFLAGS = -copt -D_ISOC99_SOURCE
+-CCOMMONFLAGS = -I. -I$(BGL_DEFAULT_LIB_DIR) -O -I/usr/local/include
++BCOMMONFLAGS += -copt -D_ISOC99_SOURCE
++CCOMMONFLAGS += -I. -I$(BGL_DEFAULT_LIB_DIR) -I/usr/local/include
+
+ SOURCE_LIST = profiler profiler-c-bindings
+ C_SOURCE_LIST = $(WINDOWS_TIME_SUPPORT)
+@@ -37,7 +37,7 @@
+ $(call dllcmd,../../libs/libprofiler_$(SUV).$(SOEXT)) $(POPULATION) $(C_POPULATION) $(PROFILER_DLL_LIBS)
+
+ ../../libs/libprofiler_$(SUV).a: ../../libs/profiler.heap $(STATIC_POPULATION) $(C_STATIC_POPULATION)
+- ar ruv ../../libs/libprofiler_$(SUV).a $(STATIC_POPULATION) $(C_STATIC_POPULATION)
++ $(AR) ruv ../../libs/libprofiler_$(SUV).a $(STATIC_POPULATION) $(C_STATIC_POPULATION)
+
+ ../../libs/profiler.heap: $(SOURCE_FILES)
+ $(BIGLOO) $(BHEAPFLAGS) -heap-library profiler make-lib.scm -addheap ../../libs/profiler.heap
+--- tools/c-interface/Makefile.in.orig 2008-04-08 15:28:32.000000000 +0200
++++ tools/c-interface/Makefile.in 2010-02-23 23:18:42.000000000 +0100
+@@ -1,11 +1,11 @@
+ PCC_ROOT = ../..
+ include $(PCC_ROOT)/bigloo-rules.mk
+
+-BCOMMONFLAGS = -I $(PCC_ROOT)/libs -L $(PCC_ROOT)/libs
++BCOMMONFLAGS += -I $(PCC_ROOT)/libs -L $(PCC_ROOT)/libs
+ SOURCE_LIST = c-interface
+ C_SOURCE_LIST = c-glue
+
+-CCOMMONFLAGS = -I. -I$(BGL_DEFAULT_LIB_DIR) -O -I/usr/local/include -L$(PCC_ROOT)/libs -I$(PCC_ROOT)/runtime
++CCOMMONFLAGS += -I. -I$(BGL_DEFAULT_LIB_DIR) -I/usr/local/include -L$(PCC_ROOT)/libs -I$(PCC_ROOT)/runtime
+
+ C_SOURCE_FILES := $(patsubst %,%.c,$(C_SOURCE_LIST))
+ C_POPULATION := $(patsubst %,%_$(SU).o,$(C_SOURCE_LIST))
+--- tools/readline/Makefile.in.orig 2008-03-20 16:05:06.000000000 +0100
++++ tools/readline/Makefile.in 2010-02-23 23:22:19.000000000 +0100
+@@ -1,8 +1,8 @@
+ PCC_ROOT = ../..
+ include $(PCC_ROOT)/bigloo-rules.mk
+
+-BCOMMONFLAGS = -copt -D_ISOC99_SOURCE
+-CCOMMONFLAGS = -I. -I$(BGL_DEFAULT_LIB_DIR) -O -I/usr/local/include
++BCOMMONFLAGS += -copt -D_ISOC99_SOURCE
++CCOMMONFLAGS += -I. -I$(BGL_DEFAULT_LIB_DIR) -I/usr/local/include
+
+ SOURCE_LIST = readline history
+ C_SOURCE_LIST =
+--- webconnect/Makefile.in.orig 2008-02-19 14:58:16.000000000 +0100
++++ webconnect/Makefile.in 2010-02-23 23:30:58.000000000 +0100
+@@ -5,7 +5,7 @@
+
+ BIGLOO_VERSION = `bigloo -eval '(begin (print *bigloo-version*) (exit 0))'`
+ PHPOO_INC = -I ../.. -library profiler
+-BCOMMONFLAGS = -L ../libs -copt -I/usr/local/include
++BCOMMONFLAGS += -L ../libs -copt -I/usr/local/include
+
+ SOURCE_LIST = webconnect make-lib cgi
+
+--- webconnect/fastcgi/Makefile.in.orig 2008-03-20 16:05:06.000000000 +0100
++++ webconnect/fastcgi/Makefile.in 2010-02-23 23:36:58.000000000 +0100
+@@ -5,7 +5,7 @@
+
+ BIGLOO_VERSION = `bigloo -eval '(begin (print *bigloo-version*) (exit 0))'`
+ PHPOO_INC = -I ../.. -library profiler
+-BCOMMONFLAGS = -L ../../libs -copt -I$(PCC_ROOT)/../include -copt -L$(PCC_ROOT)/../lib
++BCOMMONFLAGS += -L ../../libs -copt -I$(PCC_ROOT)/../include -copt -L$(PCC_ROOT)/../lib
+
+ SOURCE_LIST = fastcgi fcgi-binding c-fcgi-bindings
+ C_SOURCE_LIST = c-fcgi
+--- webconnect/micro/Makefile.in.orig 2008-03-20 16:05:06.000000000 +0100
++++ webconnect/micro/Makefile.in 2010-02-24 00:22:14.000000000 +0100
+@@ -2,7 +2,7 @@
+ include $(PCC_ROOT)/bigloo-rules.mk
+
+ BIGLOO_VERSION = `bigloo -eval '(begin (print *bigloo-version*) (exit 0))'`
+-BCOMMONFLAGS = -L $(PCC_ROOT)libs -copt -I$(PCC_ROOT)libs -copt -I$(PCC_ROOT)/tools/libwebserver/include
++BCOMMONFLAGS += -L $(PCC_ROOT)libs -copt -I$(PCC_ROOT)libs -copt -I$(PCC_ROOT)/tools/libwebserver/include
+
+ # cgen binary
+ CGEN = $(shell which cgen)
+@@ -32,7 +32,7 @@
+ $(call dllcmd_i,$(PCC_ROOT)libs/libmhttpd_$(SUV).$(SOEXT)) $(M_POPULATION) $(MHTTPD_DLL_LIBS)
+
+ $(PCC_ROOT)libs/libmhttpd_$(SUV).a: $(PCC_ROOT)libs/mhttpd.heap $(M_STATIC_POPULATION)
+- ar ruv $(PCC_ROOT)libs/libmhttpd_$(SUV).a $(M_STATIC_POPULATION)
++ $(AR) ruv $(PCC_ROOT)libs/libmhttpd_$(SUV).a $(M_STATIC_POPULATION)
+
+ $(PCC_ROOT)libs/mhttpd.heap: $(M_POPULATION)
+ $(BIGLOO) $(BHEAPFLAGS) make-mhttpd-lib.scm -heap-library mhttpd -addheap $(PCC_ROOT)libs/mhttpd.heap
diff --git a/dev-php/roadsend-php/roadsend-php-2.9.9_p1-r1.ebuild b/dev-php/roadsend-php/roadsend-php-2.9.9_p1-r1.ebuild
new file mode 100644
index 000000000000..deaa45077c38
--- /dev/null
+++ b/dev-php/roadsend-php/roadsend-php-2.9.9_p1-r1.ebuild
@@ -0,0 +1,132 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-php/roadsend-php/roadsend-php-2.9.9_p1-r1.ebuild,v 1.1 2010/08/09 22:37:47 mabi Exp $
+
+EAPI=2
+inherit autotools eutils multilib
+
+MY_PV=${PV/_/-}
+MY_P=${PN}-${MY_PV}
+
+DESCRIPTION="PHP compiler"
+HOMEPAGE="http://code.roadsend.com/pcc"
+SRC_URI="http://code.roadsend.com/snaps/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug fastcgi mysql odbc pcre sqlite xml"
+
+DEPEND="dev-scheme/bigloo
+ net-misc/curl
+ mysql? ( dev-db/mysql )
+ sqlite? ( dev-db/sqlite:3 )
+ pcre? ( dev-libs/libpcre )
+ xml? ( dev-libs/libxml2 )
+ odbc? ( dev-db/unixODBC )
+ fastcgi? ( dev-libs/fcgi )"
+RDEPEND="${DEPEND}"
+
+# Upstream comment: "Sorry, most of the pain here seems to come from bigloo. In our new
+# rewrite (which is far from ready, however), bigloo is out of the picture."
+# So - in short, not worth the PITA and waste of time until 3.0.0 is out.
+QA_PRESTRIPPED="usr/bin/pcc
+ usr/bin/pdb
+ usr/bin/pcc.fcgi
+ usr/bin/pcctags"
+QA_DT_HASH="usr/$(get_libdir)/libphp-pdo_u-3.2b.so"
+QA_SONAME="usr/$(get_libdir)/libfastcgi_u-3.2b.so
+ usr/$(get_libdir)/libmhttpd_u-3.2b.so
+ usr/$(get_libdir)/libpcc-rl_u-3.2b.so
+ usr/$(get_libdir)/libphp.*
+ usr/$(get_libdir)/libprofiler_u-3.2b.so
+ usr/$(get_libdir)/libwebconnect_u-3.2b.so
+ usr/$(get_libdir)/libwebserver.so"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ # respect CFLAGS/LDFLAGS
+ # Upstream bugs: http://code.roadsend.com/pcc/ticket/3495
+ # http://code.roadsend.com/pcc/ticket/3531
+ # note the ugly ^M gremlins and make the patch not fail
+ # with DOS line endings depending on sys-devel/patch version installed
+ edos2unix bigloo-rules.mk || die "failed to sanitize bigloo-rules.mk"
+ for i in runtime/Makefile compiler/Makefile tools/c-interface/Makefile \
+ tools/profiler/Makefile tools/readline/Makefile webconnect/fastcgi/Makefile \
+ webconnect/micro/Makefile ; do
+ mv -f ${i} ${i}.in || die "mv ${i} failed"
+ done
+ epatch "${FILESDIR}/${P}-flags.patch"
+ # Bigloo needs -copt/-ldopt prefixed before *each* of CFLAGS/LDFLAGS
+ # Without this you get flooded with tons of "Don't know what to do with arguments" messages
+ local bcflags bldflags pcccflags pccldflags pccpropercflags pccproperldflags
+ if [[ -n ${CFLAGS} ]] ; then
+ for x in ${CFLAGS}; do
+ bcflags="${bcflags} -copt ${x}"
+ done
+ sed -i -e "s:@@CFLAGS@@:${bcflags}:g" bigloo-rules.mk || die "sed failed"
+ else
+ sed -i -e "s:@@CFLAGS@@::g" bigloo-rules.mk || die "sed failed"
+ fi
+ if [[ -n ${LDFLAGS} ]] ; then
+ for x in ${LDFLAGS} ; do
+ bldflags="${bldflags} -ldopt ${x}"
+ done
+ sed -i -e "s:@@LDFLAGS@@:${bldflags}:g" bigloo-rules.mk || die "sed failed"
+ else
+ sed -i -e "s:@@LDFLAGS@@::g" bigloo-rules.mk || die "sed failed"
+ fi
+
+ # See http://code.roadsend.com/pcc/ticket/3523 for reasons for this madness
+ # Also, pcc itself only accepts --copt/--ldopt instead of -copt/-ldopt used for bigloo
+ if [[ -n ${CFLAGS} ]] ; then
+ for x in ${CFLAGS}; do
+ pcccflags="${pcccflags} --bopt -copt --bopt ${x}"
+ pccpropercflags="${pccpropercflags} --copt ${x}"
+ done
+ sed -i -e "s:@@CFLAGS@@:${pcccflags}:" runtime/php-ext/php-extensions.mk || die "sed failed"
+ sed -i -e "s:@@PCCCFLAGS@@:${pccpropercflags}:" runtime/php-ext/php-extensions.mk || die "sed failed"
+ else
+ sed -i -e "s:@@PCCCFLAGS@@::" runtime/php-ext/php-extensions.mk || die "sed failed"
+ sed -i -e "s:@@PCCCFLAGS@@::" runtime/php-ext/php-extensions.mk || die "sed failed"
+ fi
+ if [[ -n ${LDFLAGS} ]] ; then
+ for x in ${LDFLAGS}; do
+ pccldflags="${pccldflags} --bopt -ldopt --bopt ${x}"
+ pccproperldflags="${pccproperldflags} --ldopt ${x}"
+ done
+ sed -i -e "s:@@LDFLAGS@@:${pccldflags}:" runtime/php-ext/php-extensions.mk || die "sed failed"
+ sed -i -e "s:@@PCCLDFLAGS@@:${pccproperldflags}:" runtime/php-ext/php-extensions.mk || die "sed failed"
+ else
+ sed -i -e "s:@@LDFLAGS@@::" runtime/php-ext/php-extensions.mk || die "sed failed"
+ sed -i -e "s:@@PCCLDFLAGS@@::" runtime/php-ext/php-extensions.mk || die "sed failed"
+ fi
+
+ eautoreconf
+}
+
+src_configure() {
+ econf $(use_with pcre) \
+ $(use_with fastcgi fcgi) \
+ $(use_with xml) \
+ $(use_with mysql) \
+ $(use_with sqlite sqlite3) \
+ $(use_with odbc)
+}
+
+src_compile() {
+ if use debug; then
+ emake -j1 debug || die "make debug failed"
+ else
+ emake -j1 || die "make failed"
+ fi
+}
+
+src_test() {
+ LD_LIBRARY_PATH="${S}/libs/" emake -j1 test || die "standalone tests failed"
+}
+
+src_install() {
+ emake -j1 DESTDIR="${D}" install || die "make install failed"
+}