libproxy1 stable port information

Package: libproxy1
Version: 0.4.7
Revision: 1
Source: http://libproxy.googlecode.com/files/libproxy-%v.tar.gz
Source-MD5: 509e03a488a61cd62bfbaf3ab6a2a7a5
BuildDepends: <<
cmake,
fink (>= 0.28),
pkgconfig (>= 0.23)
<<
Depends: %n-shlibs (= %v-%r)
Conflicts: libproxy0
Replaces: libproxy0
BuildDependsOnly: true
GCC: 4.0
PatchFile: %n.patch
PatchFile-MD5: ab8f3fdbe1e94b4771a522a6e5b0764c
PatchScript: <<
%{default_script}
perl -pi -e 's/_POSIX_C_SOURCE/_DARWIN_C_SOURCE/' libproxy/CMakeLists.txt
perl -pi -e 's/false/NULL/' libproxy/modules/wpad_dns_alias.cpp
<<
CompileScript: <<
CMAKE_MODULE_PATH=%p/share/cmake/Modules cmake -DCMAKE_INSTALL_PREFIX=%p -DCMAKE_INSTALL_NAME_DIR=%p/lib
make
<<
InstallScript: <<
make install DESTDIR=%d
<<
SplitOff: <<
Package: %N-shlibs
Files: <<
lib/libproxy.1.0.0.dylib
lib/libproxy.1.dylib
<<
Shlibs: <<
%p/lib/libproxy.1.dylib 1.0.0 %n (>= 0.4.0-1)
<<
DocFiles:AUTHORS COPYING ChangeLog NEWS README
<<
SplitOff2: <<
Package: libproxy-bin
Depends: %N-shlibs (>= %v-%r)
Files: bin
DocFiles: AUTHORS COPYING ChangeLog NEWS README
Description: Command-line proxy detector
<<
DocFiles: AUTHORS COPYING ChangeLog NEWS README
DescPackaging: <<
Hacking CMakeLists.txt seems to be only way to disable building
certain plugins.

cmake can't find libmodman even when libmodman is hacked to
install the public detection files and even when we explicitly
point to it. Whatever...just force use of onboard libmodman.

We're apple, but we still want public lib-detection files.
<<
DescDetail: <<
This is the core library only, and the plugins to support
proxy-configuration via envvar and file. Other plugins will be
packaged separately. Note: plugins are tied to specific %%v of
library, not its ABI or other libversion field. Updating
library package will require updating external plugin
packages.
<<
Description: Generic access to network proxy settings
Homepage: http://code.google.com/p/libproxy
License: LGPL
Maintainer: Daniel Macks

libproxy1 stable port .patch

diff -Nurd -x'*~' libproxy-0.4.7.orig/CMakeLists.txt libproxy-0.4.7/CMakeLists.txt
--- libproxy-0.4.7.orig/CMakeLists.txt 2011-06-06 17:44:37.000000000 -0400
+++ libproxy-0.4.7/CMakeLists.txt 2011-09-16 06:21:31.000000000 -0400
@@ -29,7 +29,6 @@
### Subdirectories
# Conditionally build bundled libmodman
option(FORCE_SYSTEM_LIBMODMAN "Force using system libmodman" OFF)
-find_package(libmodman QUIET)
if(LIBMODMAN_FOUND)
if("${LIBMODMAN_VERSION_MAJOR}" STREQUAL "2")
message(STATUS "Building with system libmodman")
@@ -48,7 +47,6 @@

# Conditionally build bindings
if(NOT WIN32)
- add_subdirectory(bindings)
endif()

# Always build these
diff -Nurd -x'*~' libproxy-0.4.7.orig/libproxy/cmake/devfiles.cmk libproxy-0.4.7/libproxy/cmake/devfiles.cmk
--- libproxy-0.4.7.orig/libproxy/cmake/devfiles.cmk 2011-06-06 17:44:37.000000000 -0400
+++ libproxy-0.4.7/libproxy/cmake/devfiles.cmk 2011-09-16 04:58:22.000000000 -0400
@@ -1,4 +1,4 @@
-if(NOT WIN32 AND NOT APPLE)
+if(NOT WIN32)
# PkgConfig file
set (PKGCONFIG_PREFIX ${CMAKE_INSTALL_PREFIX})

diff -Nurd -x'*~' libproxy-0.4.7.orig/libproxy/cmake/modules/pacrunner_webkit.cmk libproxy-0.4.7/libproxy/cmake/modules/pacrunner_webkit.cmk
--- libproxy-0.4.7.orig/libproxy/cmake/modules/pacrunner_webkit.cmk 2011-06-06 17:44:37.000000000 -0400
+++ libproxy-0.4.7/libproxy/cmake/modules/pacrunner_webkit.cmk 2011-09-16 05:01:43.000000000 -0400
@@ -7,10 +7,6 @@
include_directories("${WEBKIT_INCLUDE_DIR}")
endif()
elseif(APPLE)
- find_library(WEBKIT_LIBRARIES JavaScriptCore)
- if(WEBKIT_LIBRARIES)
- set(WEBKIT_FOUND 1)
- endif()
else()
if(WITH_WEBKIT3)
px_check_modules(WEBKIT webkitgtk-3.0)

libproxy1 _unstable_ port .patch