diff options
author | roam <roam@FreeBSD.org> | 2004-04-20 20:07:57 +0800 |
---|---|---|
committer | roam <roam@FreeBSD.org> | 2004-04-20 20:07:57 +0800 |
commit | 3a9e33657afa4d5a90c48f9ffbf15e4e9f61d4c9 (patch) | |
tree | a4e3f5d844d30989fe55316348c59a984972b2c8 /ftp/curlpp | |
parent | f68527664042793a509a2ff563e85c84712bb88b (diff) | |
download | freebsd-ports-gnome-3a9e33657afa4d5a90c48f9ffbf15e4e9f61d4c9.tar.gz freebsd-ports-gnome-3a9e33657afa4d5a90c48f9ffbf15e4e9f61d4c9.tar.zst freebsd-ports-gnome-3a9e33657afa4d5a90c48f9ffbf15e4e9f61d4c9.zip |
Work around the removal of the CURLOPT_PASSWDFUNCTION and
CURLOPT_PASSWDDATA options which have been deprecated since curl-7.10.8.
Reported by: dosirak via kris
Diffstat (limited to 'ftp/curlpp')
-rw-r--r-- | ftp/curlpp/Makefile | 2 | ||||
-rw-r--r-- | ftp/curlpp/files/patch-src::curl.cpp | 30 |
2 files changed, 31 insertions, 1 deletions
diff --git a/ftp/curlpp/Makefile b/ftp/curlpp/Makefile index 26601e13cc16..e83d032ae8dd 100644 --- a/ftp/curlpp/Makefile +++ b/ftp/curlpp/Makefile @@ -8,7 +8,7 @@ PORTNAME= curlpp PORTVERSION= 0.3.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= ftp MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} diff --git a/ftp/curlpp/files/patch-src::curl.cpp b/ftp/curlpp/files/patch-src::curl.cpp new file mode 100644 index 000000000000..027a8284e2cf --- /dev/null +++ b/ftp/curlpp/files/patch-src::curl.cpp @@ -0,0 +1,30 @@ +Index: src/curl.cpp +=================================================================== +RCS file: /home/cvs/ringlet/c/contrib/net/curlpp/src/curl.cpp,v +retrieving revision 1.1.1.1 +retrieving revision 1.2 +diff -u -r1.1.1.1 -r1.2 +--- src/curl.cpp 13 Apr 2004 17:20:29 -0000 1.1.1.1 ++++ src/curl.cpp 20 Apr 2004 11:18:15 -0000 1.2 +@@ -193,13 +193,21 @@ + void + curlpp::curl::passwd_function( passwd_function_t function ) + { ++#if LIBCURL_VERSION_NUM < 0x070b01 + option( CURLOPT_PASSWDFUNCTION, ( void * ) function ); ++#else ++ runtime_assert( false, "The CURLOPT_PASSWDFUNCTION option has been deprecated." ); ++#endif + } + + void + curlpp::curl::passwd_data( passwd_trait *trait ) + { ++#if LIBCURL_VERSION_NUM < 0x070b01 + option( CURLOPT_PASSWDDATA, static_cast< void * >( trait ) ); ++#else ++ runtime_assert( false, "The CURLOPT_PASSWDDATA option has been deprecated." ); ++#endif + } + + void |