OpenPKG CVS Repository http://cvs.openpkg.org/ ____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall Root: /v/openpkg/cvs Email: [email protected] Module: openpkg-src Date: 31-Jan-2009 12:01:39 Branch: HEAD Handle: 2009013111013900 Added files: openpkg-src/phc phc.patch phc.spec Log: new package: phc 0.2.0.2 (PHP Compiler) Summary: Revision Changes Path 1.1 +50 -0 openpkg-src/phc/phc.patch 1.1 +91 -0 openpkg-src/phc/phc.spec ____________________________________________________________________________ patch -p0 <<'@@ .' Index: openpkg-src/phc/phc.patch ============================================================================ $ cvs diff -u -r0 -r1.1 phc.patch --- /dev/null 2009-01-31 12:01:38 +0100 +++ phc.patch 2009-01-31 12:01:39 +0100 @@ -0,0 +1,50 @@ +Index: Makefile.in +--- Makefile.in.orig 2009-01-14 16:17:21 +0100 ++++ Makefile.in 2009-01-31 11:10:07 +0100 +@@ -568,7 +568,7 @@ + # 5 or 6 files which require special rules. + + # -export-dynammic: Special libtool flag for later plugin loading +-src_phc_LDFLAGS = -export-dynamic ++src_phc_LDFLAGS = -static -export-dynamic + src_phc_LDADD = @gc_lib@ $(LIBLTDL) libphc.la + bin_SCRIPTS = src/phc_compile_plugin + libexec_SCRIPTS = libtool +Index: src/embed/embed.cpp +--- src/embed/embed.cpp.orig 2009-01-14 15:33:38 +0100 ++++ src/embed/embed.cpp 2009-01-31 10:54:50 +0100 +@@ -269,8 +269,21 @@ + } + + void +-PHP::set_ini_entry (std::string key, std::string value) ++PHP::set_ini_entry (String *key, String *value) + { ++ return; ++} ++ ++String_list* ++PHP::get_altered_ini_entries () ++{ ++ return (String_list *)0; ++} ++ ++String* ++PHP::get_ini_entry (String* key) ++{ ++ return (String *)0; + } + + String_list* +Index: src/phc_compile_plugin.in +--- src/phc_compile_plugin.in.orig 2009-01-14 15:33:38 +0100 ++++ src/phc_compile_plugin.in 2009-01-31 11:08:26 +0100 +@@ -33,7 +33,7 @@ + fi + + # Find the appropriate libtool to use +-_ORIGINAL_LIBTOOL="@libexecdir@/libtool"; ++_ORIGINAL_LIBTOOL="@libexecdir@/phc/libtool"; + _LIBTOOL=$_ORIGINAL_LIBTOOL + # If its not installed there might be a libtool in the current directory + if [ ! -x $_LIBTOOL ]; then _LIBTOOL="./libtool"; fi @@ . patch -p0 <<'@@ .' Index: openpkg-src/phc/phc.spec ============================================================================ $ cvs diff -u -r0 -r1.1 phc.spec --- /dev/null 2009-01-31 12:01:38 +0100 +++ phc.spec 2009-01-31 12:01:39 +0100 @@ -0,0 +1,91 @@ +## +## phc.spec -- OpenPKG RPM Package Specification +## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/> +## +## Permission to use, copy, modify, and distribute this software for +## any purpose with or without fee is hereby granted, provided that +## the above copyright notice and this permission notice appear in all +## copies. +## +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +## SUCH DAMAGE. +## + +# package information +Name: phc +Summary: PHP Compiler +URL: http://www.phpcompiler.org/ +Vendor: Edsko de Vries, John Gilbert, Paul Biggar et al. +Packager: OpenPKG Foundation e.V. +Distribution: OpenPKG Community +Class: EVAL +Group: Language +License: BSD +Version: 0.2.0.2 +Release: 20090131 + +# list of sources +Source0: http://www.phpcompiler.org/src/archive/phc-%{version}.tar.bz2 +Patch0: phc.patch + +# build information +Prefix: %{l_prefix} +BuildRoot: %{l_buildroot} +BuildPreReq: OpenPKG, openpkg >= 20060823, gcc, gcc::with_cxx = yes +PreReq: OpenPKG, openpkg >= 20060823 +AutoReq: no +AutoReqProv: no + +%description + phc is an open source compiler for PHP with support for plugins. In + addition, it can be used to pretty-print or obfuscate PHP code, as a + framework for developing applications that process PHP scripts, or + to convert PHP into XML and back, enabling processing of PHP scripts + using XML tools. + +%track + prog phc = { + version = %{version} + url = http://www.phpcompiler.org/downloads.html + regex = phc-(__VER__)\.tar\.bz2 + } + +%prep + %setup -q + %patch -p0 + +%build + CC="%{l_cc}" \ + CXX="%{l_cxx}" \ + CFLAGS="%{l_cflags -O}" \ + CXXFLAGS="%{l_cxxflags -O}" \ + CPPFLAGS="%{l_cppflags}" \ + LDFLAGS="%{l_ldflags}" \ + ./configure \ + --prefix=%{l_prefix} \ + --libexecdir=%{l_prefix}/libexec/phc \ + --enable-shared \ + --enable-static + %{l_make} %{l_mflags -O} + +%install + rm -rf $RPM_BUILD_ROOT + %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" + strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} + +%files -f files + +%clean + rm -rf $RPM_BUILD_ROOT + @@ . ______________________________________________________________________ OpenPKG http://openpkg.org CVS Repository Commit List [email protected]
