From a4f804b78dabb8ac39053f27f8514357ebcecde4 Mon Sep 17 00:00:00 2001 From: robert Date: Wed, 30 Jun 2010 19:02:28 +0000 Subject: [PATCH] Import of mono-flickrnet: The Flickr.Net API is a .Net Library for accessing the Flickr API, written entirely in C#. --- devel/mono-flickrnet/Makefile | 35 +++++++++++++++++++ devel/mono-flickrnet/distinfo | 5 +++ .../patches/patch-FlickrNet_AssemblyInfo_cs | 17 +++++++++ .../patches/patch-FlickrNet_flickrnet_pc_in | 12 +++++++ devel/mono-flickrnet/pkg/DESCR | 2 ++ devel/mono-flickrnet/pkg/PLIST | 4 +++ 6 files changed, 75 insertions(+) create mode 100644 devel/mono-flickrnet/Makefile create mode 100644 devel/mono-flickrnet/distinfo create mode 100644 devel/mono-flickrnet/patches/patch-FlickrNet_AssemblyInfo_cs create mode 100644 devel/mono-flickrnet/patches/patch-FlickrNet_flickrnet_pc_in create mode 100644 devel/mono-flickrnet/pkg/DESCR create mode 100644 devel/mono-flickrnet/pkg/PLIST diff --git a/devel/mono-flickrnet/Makefile b/devel/mono-flickrnet/Makefile new file mode 100644 index 00000000000..d998c4ba112 --- /dev/null +++ b/devel/mono-flickrnet/Makefile @@ -0,0 +1,35 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2010/06/30 19:02:28 robert Exp $ + +COMMENT= Flickr .Net API Library + +V= 2.2.0 +DISTNAME= FlickrNet${V:C/^([0-9]+\.[0-9]+).*/\1/}-Src-48055 +PKGNAME= mono-flickrnet-${V} +CATEGORIES= devel graphics + +HOMEPAGE= http://www.codeplex.com/FlickrNet +MASTER_SITES= http://blade2k.humppa.hu/ + +# Common Public License 1.0 +PERMIT_PACKAGE_FTP= Yes +PERMIT_PACKAGE_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes + +MODULES= lang/mono + +USE_GMAKE= Yes + +WRKSRC= ${WRKDIST}/FlickrNet + +do-configure: + cd ${WRKSRC} && prj2make FlickrNet.csproj + +do-install: + ${INSTALL_DATA_DIR} ${PREFIX}/lib/mono/flickrnet + ${INSTALL_DATA_DIR} ${PREFIX}/lib/pkgconfig + cd ${WRKSRC}/bin/Debug && ${INSTALL_DATA} FlickrNet.dll ${PREFIX}/lib/mono/flickrnet + cd ${WRKSRC} && sed -e 's|@prefix@|${LOCALBASE}|' < flickrnet.pc.in > flickrnet.pc + ${INSTALL_DATA} ${WRKSRC}/flickrnet.pc ${PREFIX}/lib/pkgconfig + +.include diff --git a/devel/mono-flickrnet/distinfo b/devel/mono-flickrnet/distinfo new file mode 100644 index 00000000000..c3871b374ac --- /dev/null +++ b/devel/mono-flickrnet/distinfo @@ -0,0 +1,5 @@ +MD5 (FlickrNet2.2-Src-48055.tar.gz) = ITfbCcMD6/qL9TpkRUWODw== +RMD160 (FlickrNet2.2-Src-48055.tar.gz) = fVwgUizw/x55KW3B4YlPvgKGgQk= +SHA1 (FlickrNet2.2-Src-48055.tar.gz) = xsXTztxL9lG16BHMcsRE1gYSbjI= +SHA256 (FlickrNet2.2-Src-48055.tar.gz) = VCjOfeNl+aIbAy9PLoVfqPryrlhDg7BCL0doENia0MM= +SIZE (FlickrNet2.2-Src-48055.tar.gz) = 85075 diff --git a/devel/mono-flickrnet/patches/patch-FlickrNet_AssemblyInfo_cs b/devel/mono-flickrnet/patches/patch-FlickrNet_AssemblyInfo_cs new file mode 100644 index 00000000000..c667c82b2cb --- /dev/null +++ b/devel/mono-flickrnet/patches/patch-FlickrNet_AssemblyInfo_cs @@ -0,0 +1,17 @@ +$OpenBSD: patch-FlickrNet_AssemblyInfo_cs,v 1.1.1.1 2010/06/30 19:02:28 robert Exp $ +--- FlickrNet/AssemblyInfo.cs.orig Wed Jun 30 07:08:21 2010 ++++ FlickrNet/AssemblyInfo.cs Wed Jun 30 07:08:38 2010 +@@ -61,10 +61,10 @@ using System.Runtime.InteropServices; + [assembly: AssemblyKeyName("")] + + #if !WindowsCE +-[assembly: AssemblyKeyFile("..\\..\\FlickrNet.snk")] ++[assembly: AssemblyKeyFile("FlickrNet.snk")] + [assembly: AllowPartiallyTrustedCallers()] + [assembly: SecurityPermission(SecurityAction.RequestMinimum, Execution = true)] + #endif + + [assembly: CLSCompliantAttribute(true)] +-[assembly: ComVisible(false)] +\ No newline at end of file ++[assembly: ComVisible(false)] diff --git a/devel/mono-flickrnet/patches/patch-FlickrNet_flickrnet_pc_in b/devel/mono-flickrnet/patches/patch-FlickrNet_flickrnet_pc_in new file mode 100644 index 00000000000..2f270f6f922 --- /dev/null +++ b/devel/mono-flickrnet/patches/patch-FlickrNet_flickrnet_pc_in @@ -0,0 +1,12 @@ +$OpenBSD: patch-FlickrNet_flickrnet_pc_in,v 1.1.1.1 2010/06/30 19:02:28 robert Exp $ +--- FlickrNet/flickrnet.pc.in.orig Wed Jun 30 07:09:01 2010 ++++ FlickrNet/flickrnet.pc.in Wed Jun 30 07:09:07 2010 +@@ -0,0 +1,8 @@ ++prefix=@prefix@ ++exec_prefix=${prefix} ++libdir=${exec_prefix}/lib ++ ++Name: Flickr .Net API Library ++Description: FlickrNet ++Version: 2.1.5 ++Libs: -r:${libdir}/mono/flickrnet/FlickrNet.dll diff --git a/devel/mono-flickrnet/pkg/DESCR b/devel/mono-flickrnet/pkg/DESCR new file mode 100644 index 00000000000..9374e3baa0f --- /dev/null +++ b/devel/mono-flickrnet/pkg/DESCR @@ -0,0 +1,2 @@ +The Flickr.Net API is a .Net Library for accessing the Flickr API, written +entirely in C#. diff --git a/devel/mono-flickrnet/pkg/PLIST b/devel/mono-flickrnet/pkg/PLIST new file mode 100644 index 00000000000..3fbae381602 --- /dev/null +++ b/devel/mono-flickrnet/pkg/PLIST @@ -0,0 +1,4 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2010/06/30 19:02:28 robert Exp $ +lib/mono/flickrnet/ +lib/mono/flickrnet/FlickrNet.dll +lib/pkgconfig/flickrnet.pc