Date: Wed, 2 Aug 2023 06:24:06 GMT From: =?utf-8?Q?Fernando=20Apestegu=C3=ADa?= <fernape@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: bd1ebaadf1d7 - main - devel/jetbrains-sqlite: new port. Native SQLite support for devel/jetbrains-* Message-ID: <202308020624.3726O6Qd040926@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by fernape: URL: https://cgit.FreeBSD.org/ports/commit/?id=bd1ebaadf1d760f6446f2b23c9b5614e0ae2e0ec commit bd1ebaadf1d760f6446f2b23c9b5614e0ae2e0ec Author: Dmitry Wagin <dmitry.wagin@ya.ru> AuthorDate: 2023-07-31 07:59:54 +0000 Commit: Fernando ApesteguĂa <fernape@FreeBSD.org> CommitDate: 2023-08-02 06:23:01 +0000 devel/jetbrains-sqlite: new port. Native SQLite support for devel/jetbrains-* ChangeLog: https://github.com/JetBrains/intellij-community/tree/master/platform/sqlite This port is needed by the upcoming releases of devel/jetbrains-* ports. PR: 272819 Reported by: dmitry.wagin@ya.ru (maintainer) --- devel/Makefile | 1 + devel/jetbrains-sqlite/Makefile | 40 ++++++++++++++++++++++ devel/jetbrains-sqlite/distinfo | 3 ++ .../files/patch-platform_sqlite_make.sh | 22 ++++++++++++ devel/jetbrains-sqlite/pkg-descr | 1 + 5 files changed, 67 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 3ec14d1e3f89..3a89a5ff9b0b 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -1037,6 +1037,7 @@ SUBDIR += jetbrains-goland SUBDIR += jetbrains-phpstorm SUBDIR += jetbrains-pty4j + SUBDIR += jetbrains-sqlite SUBDIR += jetbrains-webstorm SUBDIR += jgoodies-looks SUBDIR += jiic diff --git a/devel/jetbrains-sqlite/Makefile b/devel/jetbrains-sqlite/Makefile new file mode 100644 index 000000000000..0c71f7a3dc79 --- /dev/null +++ b/devel/jetbrains-sqlite/Makefile @@ -0,0 +1,40 @@ +PORTNAME= sqlite +PORTVERSION= 232.8660.185 +CATEGORIES= devel +PKGNAMEPREFIX= jetbrains- +DIST_SUBDIR= jetbrains + +MAINTAINER= dmitry.wagin@ya.ru +COMMENT= IntelliJ SQLite native library +WWW= https://github.com/JetBrains/intellij-community/tree/master/platform/sqlite + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +ONLY_FOR_ARCHS= amd64 + +BUILD_DEPENDS= bash:shells/bash + +USE_GITHUB= yes +GH_ACCOUNT= JetBrains +GH_PROJECT= intellij-community +GH_TAGNAME= 47fc12830b3814a57f15b1f21b379475bd437972 + +USE_JAVA= yes +JAVA_VERSION= 17+ +JAVA_BUILD= yes + +DATADIR= ${PREFIX}/share/jetbrains/${PORTNAME} +PLIST_FILES= share/jetbrains/${PORTNAME}/${ARCH}/libsqliteij.so + +do-build: + (cd ${WRKSRC}/platform/sqlite && \ + ${SETENV} JAVA_HOME=${JAVA_HOME} OS=freebsd ARCH=${ARCH} ./make.sh) + +do-install: + ${MKDIR} ${STAGEDIR}${DATADIR}/${ARCH} + ${INSTALL_LIB} \ + ${WRKSRC}/platform/sqlite/target/sqlite/freebsd-${ARCH}/libsqliteij.so \ + ${STAGEDIR}${DATADIR}/${ARCH} + +.include <bsd.port.mk> diff --git a/devel/jetbrains-sqlite/distinfo b/devel/jetbrains-sqlite/distinfo new file mode 100644 index 000000000000..64d948aeb731 --- /dev/null +++ b/devel/jetbrains-sqlite/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1690735594 +SHA256 (jetbrains/JetBrains-intellij-community-232.8660.185-47fc12830b3814a57f15b1f21b379475bd437972_GH0.tar.gz) = 0bf7465226270ae078cb781c9be3cade56923408560e917b62d92aa0e4411f7c +SIZE (jetbrains/JetBrains-intellij-community-232.8660.185-47fc12830b3814a57f15b1f21b379475bd437972_GH0.tar.gz) = 199705118 diff --git a/devel/jetbrains-sqlite/files/patch-platform_sqlite_make.sh b/devel/jetbrains-sqlite/files/patch-platform_sqlite_make.sh new file mode 100644 index 000000000000..c339a12a48da --- /dev/null +++ b/devel/jetbrains-sqlite/files/patch-platform_sqlite_make.sh @@ -0,0 +1,22 @@ +--- platform/sqlite/make.sh.orig 2023-07-25 23:43:08 UTC ++++ platform/sqlite/make.sh +@@ -23,6 +23,10 @@ if [ "$OS" == "mac" ]; then + if [ "$ARCH" == "x86_64" ]; then + cFlags+=" --target=x86_64-apple-darwin18.7.0" + fi ++elif [ "$OS" == "freebsd" ]; then ++ cFlags+=" -I$JAVA_HOME/include/freebsd" ++ linkFlags+=" -shared" ++ libFilename="libsqliteij.so" + elif [ "$OS" == "linux" ]; then + libFilename="libsqliteij.so" + +@@ -69,7 +73,7 @@ CC="${CC:-clang}" + + libFile="$outDir/$libFilename" + "${CROSS_PREFIX}${CC}" $cFlags -o "$libFile" "$outDir/NativeDB.o" "$outDir/sqlite3.o" $linkFlags +-shasum -a 256 "$libFile" | head -c 64 >"$libFile.sha256" ++sha256sum "$libFile" | head -c 64 >"$libFile.sha256" + + unlink "$outDir/sqlite3.o" + unlink "$outDir/NativeDB.o" diff --git a/devel/jetbrains-sqlite/pkg-descr b/devel/jetbrains-sqlite/pkg-descr new file mode 100644 index 000000000000..a8916d6a21e4 --- /dev/null +++ b/devel/jetbrains-sqlite/pkg-descr @@ -0,0 +1 @@ +IntelliJ SQLite native library.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202308020624.3726O6Qd040926>