Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Jan 2024 04:26:00 GMT
From:      Stephen Montgomery-Smith <stephen@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 6c096e66585c - main - math/octave-forge-rtree: New port.
Message-ID:  <202401290426.40T4Q0EG077638@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by stephen:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6c096e66585ca87013acc17873c0d4745c73bb84

commit 6c096e66585ca87013acc17873c0d4745c73bb84
Author:     Stephen Montgomery-Smith <stephen@FreeBSD.org>
AuthorDate: 2024-01-29 04:24:37 +0000
Commit:     Stephen Montgomery-Smith <stephen@FreeBSD.org>
CommitDate: 2024-01-29 04:24:37 +0000

    math/octave-forge-rtree: New port.
    
    An Octave native extension implementing the R-tree spatial index of
    Guttman-Green. The code is an embedded version of librtree.
---
 math/Makefile                     |  1 +
 math/octave-forge-rtree/Makefile  | 36 ++++++++++++++++++++++++++++++++++++
 math/octave-forge-rtree/distinfo  |  3 +++
 math/octave-forge-rtree/pkg-descr |  9 +++++++++
 4 files changed, 49 insertions(+)

diff --git a/math/Makefile b/math/Makefile
index d4142b147ab8..b93887c211ff 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -631,6 +631,7 @@
     SUBDIR += octave-forge-pythonic
     SUBDIR += octave-forge-quaternion
     SUBDIR += octave-forge-queueing
+    SUBDIR += octave-forge-rtree
     SUBDIR += octave-forge-secs1d
     SUBDIR += octave-forge-secs2d
     SUBDIR += octave-forge-secs3d
diff --git a/math/octave-forge-rtree/Makefile b/math/octave-forge-rtree/Makefile
new file mode 100644
index 000000000000..a7a7cb982ca3
--- /dev/null
+++ b/math/octave-forge-rtree/Makefile
@@ -0,0 +1,36 @@
+PORTNAME=	octave-forge-rtree
+DISTVERSION=	0.8.0
+CATEGORIES=	math
+
+MAINTAINER=	stephen@FreeBSD.org
+COMMENT=	Octave-forge package ${OCTAVE_PKGNAME}
+WWW=		https://packages.octave.org/
+
+LICENSE=	GPLv3
+LICENSE_FILE=	${EXTRACT_DIR}/COPYING
+
+USES=		octave
+
+BUILD_DEPENDS+=	gtar:archivers/gtar
+LIB_DEPENDS+=	libjansson.so:devel/jansson
+
+USE_GITLAB=	yes
+GL_ACCOUNT=	jjg
+GL_PROJECT=	librtree-octave
+GL_COMMIT=	6456b2ebb38528ea6861019b4b85699796ba91fa
+
+CFLAGS+=	-I${PREFIX}/include -L${PREFIX}/lib
+
+OCTAVE_SRC=	${OCTAVE_PKGNAME}-${DISTVERSION}
+EXTRACT_DIR=	${WRKDIR}/${GL_PROJECT}-${GL_COMMIT}
+
+post-patch:
+	${REINPLACE_CMD} s/^tar/gtar/ ${EXTRACT_DIR}/src/pkg/bin/pkg-build
+	cd ${EXTRACT_DIR} && ${SETENV} ${CONFIGURE_ENV} CFLAGS="${CFLAGS}" ./configure
+	cd ${EXTRACT_DIR} && ${SETENV} ${MAKE_ENV} ${GMAKE} package
+	cd ${EXTRACT_DIR} && ${SETENV} ${MAKE_ENV} ${GMAKE} spotless
+	${TAR} xvf ${EXTRACT_DIR}/src/pkg/versions/${OCTAVE_SRC}.tar.gz -C ${WRKDIR}
+
+GNU_CONFIGURE=	yes
+
+.include <bsd.port.mk>
diff --git a/math/octave-forge-rtree/distinfo b/math/octave-forge-rtree/distinfo
new file mode 100644
index 000000000000..19789a392d88
--- /dev/null
+++ b/math/octave-forge-rtree/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1706482585
+SHA256 (octave-forge/jjg-librtree-octave-6456b2ebb38528ea6861019b4b85699796ba91fa_GL0.tar.gz) = c43e7ff4908cc733f7a225332db6565b5def5662f828df068bade46caac9c597
+SIZE (octave-forge/jjg-librtree-octave-6456b2ebb38528ea6861019b4b85699796ba91fa_GL0.tar.gz) = 157719
diff --git a/math/octave-forge-rtree/pkg-descr b/math/octave-forge-rtree/pkg-descr
new file mode 100644
index 000000000000..7aa201318289
--- /dev/null
+++ b/math/octave-forge-rtree/pkg-descr
@@ -0,0 +1,9 @@
+The octave-forge package is the result of The GNU Octave Repositry project,
+which is intended to be a central location for custom scripts, functions and
+extensions for GNU Octave. contains the source for all the functions plus
+build and install scripts.
+
+This is rtree.
+
+ An Octave native extension implementing the R-tree spatial index of
+Guttman-Green. The code is an embedded version of librtree.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202401290426.40T4Q0EG077638>