From nobody Tue Jan 28 17:06:03 2025 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YjBWc49y5z5lmQ1; Tue, 28 Jan 2025 17:06:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YjBWc0rvmz44Cd; Tue, 28 Jan 2025 17:06:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1738083964; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZhwYTnDQLTyHPYp5UqvMumnhV/BRyKY2xLZsH200zgU=; b=UxFFik5tM82XGvpMbsy7gZ0vm6oIdPMdTXVqlI4gHHIWeG1ku4jkBU4Ba21UVEsNMFQP5s kwvjorMpraM27xuVD7WJET2OLau8ug8oQzXv0w+0sk/L/tDZVy4MXdmE/qRv3p7a+xTmIx 5uPsy4R4cj8RTpTWqWloWux0aFo9P5eS82VFAU6HYq8YOPX+6zIz+bqF4X8v0KxP3XyOLK DwFrMKseJHcoK6vYurKf9BHde5s7lsS1pdcNsG4fxJiK6Uk0sL5eNBY4I3ChjUaRw0O4+k k2BuTkN9CGlR8wCrerxCGd09AxEljSqKBmGLHdkOEj8E0OSBq8qs7BwC+rQ6Wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1738083964; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZhwYTnDQLTyHPYp5UqvMumnhV/BRyKY2xLZsH200zgU=; b=sd5mmaldXocuiM17/m+9/tI5qyCuvs0eTCtcl8llaCKxS/aGFq4eOluL3JsQX0pemUtzvK RLCbRMHuMZjHTmSVoRUeP9ZJqhL8HM7YxmpiXVHZ6R70K/hOS6zzrA7eucKn1UetVGgqXF VPHTY79vLYpQRsbVEhYcWwCDCpG9l41CUUA6C1NEaHh9Td7T4/+Yror8IZaFCsnWkjMtvV MQPpNYBtbmTSIkYzFDucTFGu5WQ05jm/OXOHR9ySubpFIWXctcrlguzSkl8e30UuuEnAvU ZdkiBMzlTE7pOTuNUldYzoTd2rt3bsLaCeYywS9EDemCIp2qFxAkyLH+zBjkyg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1738083964; a=rsa-sha256; cv=none; b=UsSX1IjPe3jfOnO3FXjp0J+o78lmBvsWIo1ynZ9FX++IiXHx0UX1X6bmyFfVkeK/6JEjvm Q3d6/BuA/iSIPb7HFIExEHnX4FYGvtH2Pqo4cb1vaEaPGn69iRL2Ti0U3xYQRhA91kU7l2 I6V4JUlb5a+g2W1pbI4rKNNd7UyBewTsL8V6VOG5JOpB+Q4J7IRJxrkeMoENvT6hQGv/tL etzvemQ1ol4vBq4Q65zeiiENAXdgBAR3mUTKfcfTlB/FQcL6KvFjlttMrdpTfBKyPQmB3Y XJs1IbH/KdMc4X53/QIQZEr8TYkX1TtnI1yybXQ1tAOmC4MVH05WJtK55VITow== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4YjBWc0PXvz8J1; Tue, 28 Jan 2025 17:06:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 50SH635b061402; Tue, 28 Jan 2025 17:06:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 50SH636F061399; Tue, 28 Jan 2025 17:06:03 GMT (envelope-from git) Date: Tue, 28 Jan 2025 17:06:03 GMT Message-Id: <202501281706.50SH636F061399@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: c00f409a8c23 - main - graphics/p5-Geo-LibProj-FFI: Add p5-Geo-LibProj-FFI 1.00 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c00f409a8c23b60351ab7240caa46ad12bf0855b Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=c00f409a8c23b60351ab7240caa46ad12bf0855b commit c00f409a8c23b60351ab7240caa46ad12bf0855b Author: Po-Chuan Hsieh AuthorDate: 2025-01-28 17:02:40 +0000 Commit: Po-Chuan Hsieh CommitDate: 2025-01-28 17:02:40 +0000 graphics/p5-Geo-LibProj-FFI: Add p5-Geo-LibProj-FFI 1.00 Geo::LibProj::FFI is a foreign function interface to the PROJ coordinate transformation / projection library. Please see the PROJ library's C function reference for further documentation. You should be able to use those C functions as if they were Perl. Geo::LibProj::FFI offers a large portion of the most commonly used PROJ functions, but more could be added later. If you need a function that isn't yet available in this module, please open a GitHub issue with a description of your use case. --- graphics/Makefile | 1 + graphics/p5-Geo-LibProj-FFI/Makefile | 33 ++++++++++++++++ graphics/p5-Geo-LibProj-FFI/distinfo | 3 ++ graphics/p5-Geo-LibProj-FFI/files/patch-Alien-proj | 46 ++++++++++++++++++++++ graphics/p5-Geo-LibProj-FFI/pkg-descr | 9 +++++ graphics/p5-Geo-LibProj-FFI/pkg-plist | 2 + 6 files changed, 94 insertions(+) diff --git a/graphics/Makefile b/graphics/Makefile index 9129f166156f..75e2725c1ac3 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -714,6 +714,7 @@ SUBDIR += p5-Geo-GDAL-FFI SUBDIR += p5-Geo-GML SUBDIR += p5-Geo-Gpx + SUBDIR += p5-Geo-LibProj-FFI SUBDIR += p5-Geometry-Primitive SUBDIR += p5-Gimp SUBDIR += p5-Google-Chart diff --git a/graphics/p5-Geo-LibProj-FFI/Makefile b/graphics/p5-Geo-LibProj-FFI/Makefile new file mode 100644 index 000000000000..a20a9988883c --- /dev/null +++ b/graphics/p5-Geo-LibProj-FFI/Makefile @@ -0,0 +1,33 @@ +PORTNAME= Geo-LibProj-FFI +PORTVERSION= 1.00 +CATEGORIES= graphics perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Foreign function interface to PROJ coordinate transformation software +WWW= https://metacpan.org/dist/Geo-LibProj-FFI + +LICENSE= ART10 ART20 GPLv1+ +LICENSE_COMB= dual +LICENSE_FILE_ART20= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${RUN_DEPENDS} +LIB_DEPENDS= libproj.so:graphics/proj +RUN_DEPENDS= p5-Convert-Binary-C>=0.04:converters/p5-Convert-Binary-C \ + p5-Exporter-Easy>=0:devel/p5-Exporter-Easy \ + p5-FFI-C>=0.08:devel/p5-FFI-C \ + p5-FFI-Platypus>=1.50:devel/p5-FFI-Platypus +TEST_DEPENDS= p5-Test-Exception>=0:devel/p5-Test-Exception \ + p5-Test-Warnings>=0.010:devel/p5-Test-Warnings + +USES= perl5 +USE_PERL5= configure + +NO_ARCH= yes + +post-patch: + @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/lib/Geo/LibProj/FFI.pm + @${RM} ${WRKSRC}/t/00-version.t + +.include diff --git a/graphics/p5-Geo-LibProj-FFI/distinfo b/graphics/p5-Geo-LibProj-FFI/distinfo new file mode 100644 index 000000000000..7e2b55203a1a --- /dev/null +++ b/graphics/p5-Geo-LibProj-FFI/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1736671127 +SHA256 (Geo-LibProj-FFI-1.00.tar.gz) = 83c36bef2307ad641040ce5b3ab24649f8bb033b13c450eecbf5106b9b9f6994 +SIZE (Geo-LibProj-FFI-1.00.tar.gz) = 24370 diff --git a/graphics/p5-Geo-LibProj-FFI/files/patch-Alien-proj b/graphics/p5-Geo-LibProj-FFI/files/patch-Alien-proj new file mode 100644 index 000000000000..67809b477288 --- /dev/null +++ b/graphics/p5-Geo-LibProj-FFI/files/patch-Alien-proj @@ -0,0 +1,46 @@ +--- lib/Geo/LibProj/FFI.pm.orig 2024-05-12 18:33:31 UTC ++++ lib/Geo/LibProj/FFI.pm +@@ -5,7 +5,6 @@ package Geo::LibProj::FFI 1.00; + package Geo::LibProj::FFI 1.00; + + +-use Alien::proj 1.07; + use FFI::Platypus 1.50; + use FFI::C 0.08; + use Convert::Binary::C 0.04; +@@ -92,7 +91,7 @@ my $ffi = FFI::Platypus->new( + my $ffi = FFI::Platypus->new( + api => 2, + lang => 'C', +- lib => [Alien::proj->dynamic_libs], ++ lib => ['%%LOCALBASE%%/lib/libproj.so'], + ); + FFI::C->ffi($ffi); + +--- Makefile.PL.orig 2024-05-12 18:33:31 UTC ++++ Makefile.PL +@@ -17,7 +17,6 @@ my %WriteMakefileArgs = ( + "MIN_PERL_VERSION" => "5.014000", + "NAME" => "Geo::LibProj::FFI", + "PREREQ_PM" => { +- "Alien::proj" => "1.07", + "Convert::Binary::C" => "0.04", + "Exporter::Easy" => 0, + "FFI::C" => "0.08", +--- t/00-report-prereqs.dd.orig 2024-05-12 18:33:31 UTC ++++ t/00-report-prereqs.dd +@@ -13,7 +13,6 @@ do { my $x = { + }, + 'runtime' => { + 'requires' => { +- 'Alien::proj' => '1.07', + 'Convert::Binary::C' => '0.04', + 'Exporter::Easy' => '0', + 'FFI::C' => '0.08', +@@ -35,4 +34,4 @@ do { my $x = { + } + }; + $x; +- } +\ No newline at end of file ++ } diff --git a/graphics/p5-Geo-LibProj-FFI/pkg-descr b/graphics/p5-Geo-LibProj-FFI/pkg-descr new file mode 100644 index 000000000000..3b354c0c9e77 --- /dev/null +++ b/graphics/p5-Geo-LibProj-FFI/pkg-descr @@ -0,0 +1,9 @@ +Geo::LibProj::FFI is a foreign function interface to the PROJ coordinate +transformation / projection library. Please see the PROJ library's C function +reference for further documentation. You should be able to use those C functions +as if they were Perl. + +Geo::LibProj::FFI offers a large portion of the most commonly used PROJ +functions, but more could be added later. If you need a function that isn't yet +available in this module, please open a GitHub issue with a description of your +use case. diff --git a/graphics/p5-Geo-LibProj-FFI/pkg-plist b/graphics/p5-Geo-LibProj-FFI/pkg-plist new file mode 100644 index 000000000000..7356978060c6 --- /dev/null +++ b/graphics/p5-Geo-LibProj-FFI/pkg-plist @@ -0,0 +1,2 @@ +%%SITE_PERL%%/Geo/LibProj/FFI.pm +%%PERL5_MAN3%%/Geo::LibProj::FFI.3.gz