From nobody Wed Aug 2 06:24:06 2023 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 4RG24f3G54z4qJBM; Wed, 2 Aug 2023 06:24:07 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RG24Q4MKcz4Jpf; Wed, 2 Aug 2023 06:24:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1690957446; 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=51DB3TN9mEGvBv2LzLk3gE6Tuq7dX3bi+zt7uqKNpb4=; b=atMl0MHP/+DOSU7BbN0qtMUkgAu0ufsstUuBGMxsj+WTtNVIl0gTVlKvjIVcoFkIHy/5zT uksCXtR9kBzz7lwC4ohyukFz7SxYosA5KnWSn+H3E0xasJvnffEcIJBaIoIu7OKBsfI5iR gj5U0v8qxtnZ1XPrs9m3uDSqO4REEmCQVOkf9I3Xp15cN73O/yvZebg9CSijIfojN587n8 8vMC8obbZpn9RwV6zNL4sse49Z82aCa0TAtjWIymP27mniruNYBO2KKimWkgjHA9ooC9L/ XS8Qc8uTk/E83CJ1YFWXGypk6lfxvyuD0Ta9yjSZZw7TDWw4J42xEvh27FNo1A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1690957446; a=rsa-sha256; cv=none; b=NHngSUWt2eN0j6G38AiFRB9wkgCTV05AEaVjegWVQkauYY2M0CVwOSr1TYg25sxkjDh49R a6x7vfNUw7PfMuDHvWKWmrmniPh5Eaal00GSsLAkAvUTXzBX9bJ/UmyxNFukrQlcPuc5b5 kiBwQurOM5jPXrZA31OhvGwox2OtTgIL2mA10V7uvc44I3jaLQ5MbKe7hL2TGpKav0Xk3n Nf3Be5Y2rWmiYNLTFotlAQXzTLIbw9r+lGuHS/eNSoFDTSWd6UpDxuNDaroq99XHkBvpoo odEBthtSX7YR8qt2rUwjxTS62deSuuxU+tJLnTPLjFEDPgbAw+PlFZdtetJZkg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1690957446; 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=51DB3TN9mEGvBv2LzLk3gE6Tuq7dX3bi+zt7uqKNpb4=; b=ax1Ioty57QEKa5dx0wScn972M9B2wJTAkpSHscpA0EmpC94EBxp4/koyIwhitCd0UPkOVl uPBtRI/AnrPdc6vA5LXwYkv11qmBLeVy8RVoAOtiZ2wNgVpjWD4tigBLEMJB+49LAG582w M6ar2vkyviO/W3bguzmauJ35lRr2PP4mUw2NXtxK3S1K7u+7pkrryEkoooBaFgnOELfyr4 KXYuLq7s6Kcgat0WPXCGDd6bUxzZHVZqtbI3KWgv0s+ZiayYoBvWWMdjDbSSF2cvwjcp/b OnQhWt96gE5ts0vwWc66Tsnem6bM/2aukt0mCiFS+Jfjz1ios3MqAPKIA9x14w== 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 4RG24Q1nl3z18Bc; Wed, 2 Aug 2023 06:24:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3726O6H8040927; Wed, 2 Aug 2023 06:24:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3726O6Qd040926; Wed, 2 Aug 2023 06:24:06 GMT (envelope-from git) Date: Wed, 2 Aug 2023 06:24:06 GMT Message-Id: <202308020624.3726O6Qd040926@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: =?utf-8?Q?Fernando=20Apestegu=C3=ADa?= Subject: git: bd1ebaadf1d7 - main - devel/jetbrains-sqlite: new port. Native SQLite support for devel/jetbrains-* 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: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fernape X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: bd1ebaadf1d760f6446f2b23c9b5614e0ae2e0ec Auto-Submitted: auto-generated The branch main has been updated by fernape: URL: https://cgit.FreeBSD.org/ports/commit/?id=bd1ebaadf1d760f6446f2b23c9b5614e0ae2e0ec commit bd1ebaadf1d760f6446f2b23c9b5614e0ae2e0ec Author: Dmitry Wagin AuthorDate: 2023-07-31 07:59:54 +0000 Commit: Fernando ApesteguĂ­a 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 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.