mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
Uses/electronfix.mk: revert previous commit
And remove the offending port, it can be added back if the software is updated to work with a supported electron.
This commit is contained in:
parent
9c05d6b4c9
commit
06757954d9
@ -24,7 +24,7 @@ _INCLUDE_USES_ELECTRONFIX_MK= yes
|
|||||||
_ELECTRON_MAKEFILE_VERSION= ${.CURDIR}/../../devel/electron${electronfix_ARGS}/Makefile.version
|
_ELECTRON_MAKEFILE_VERSION= ${.CURDIR}/../../devel/electron${electronfix_ARGS}/Makefile.version
|
||||||
|
|
||||||
. if !exists(${_ELECTRON_MAKEFILE_VERSION})
|
. if !exists(${_ELECTRON_MAKEFILE_VERSION})
|
||||||
. warning Unknown Electron version in USES=electronfix:${electronfix_ARGS}
|
. error Unknown Electron version in USES=electronfix:${electronfix_ARGS}
|
||||||
. endif
|
. endif
|
||||||
|
|
||||||
BUILD_DEPENDS+= electron${electronfix_ARGS}:devel/electron${electronfix_ARGS}
|
BUILD_DEPENDS+= electron${electronfix_ARGS}:devel/electron${electronfix_ARGS}
|
||||||
|
@ -451,7 +451,6 @@
|
|||||||
SUBDIR += linuxdoc
|
SUBDIR += linuxdoc
|
||||||
SUBDIR += linuxdoc-tools
|
SUBDIR += linuxdoc-tools
|
||||||
SUBDIR += localize
|
SUBDIR += localize
|
||||||
SUBDIR += logseq
|
|
||||||
SUBDIR += lookatme
|
SUBDIR += lookatme
|
||||||
SUBDIR += loook
|
SUBDIR += loook
|
||||||
SUBDIR += lowdown
|
SUBDIR += lowdown
|
||||||
|
@ -1,87 +0,0 @@
|
|||||||
PORTNAME= logseq
|
|
||||||
PORTVERSION= 0.10.8
|
|
||||||
CATEGORIES= textproc
|
|
||||||
MASTER_SITES= https://github.com/logseq/logseq/releases/download/${PORTVERSION}/ \
|
|
||||||
LOCAL/arrowd/:node_modules
|
|
||||||
DISTFILES= Logseq-linux-x64-${PORTVERSION}${EXTRACT_SUFX} \
|
|
||||||
logseq/rsapi-${RSAPI_HASH}.freebsd-x64.node${EXTRACT_SUFX}:node_modules \
|
|
||||||
logseq/better-sqlite-${BETTER_SQLITE_VERSION}.node${EXTRACT_SUFX}:node_modules
|
|
||||||
|
|
||||||
MAINTAINER= arrowd@FreeBSD.org
|
|
||||||
COMMENT= Open-source platform for knowledge management and collaboration
|
|
||||||
WWW= https://logseq.com
|
|
||||||
|
|
||||||
LICENSE= AGPLv3
|
|
||||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
||||||
|
|
||||||
BROKEN= Depends on expired and removed devel/electron27
|
|
||||||
|
|
||||||
ONLY_FOR_ARCHS= amd64
|
|
||||||
|
|
||||||
RUN_DEPENDS= git:devel/git
|
|
||||||
|
|
||||||
USES= desktop-file-utils electronfix:27 shared-mime-info zip
|
|
||||||
|
|
||||||
ELECTRONFIX_MAIN_EXECUTABLE= Logseq
|
|
||||||
SUB_FILES= Logseq
|
|
||||||
NO_BUILD= yes
|
|
||||||
WRKSRC= ${WRKDIR}/Logseq-linux-x64
|
|
||||||
|
|
||||||
RSAPI_HASH= d731cc44acb903a41c5e0b8dc7e576cc2d35ceb4
|
|
||||||
BETTER_SQLITE_VERSION= 9.3.0
|
|
||||||
|
|
||||||
post-patch:
|
|
||||||
${RM} ${WRKSRC}/resources/app/node_modules/@logseq/rsapi-linux-x64-gnu/package.json.orig
|
|
||||||
|
|
||||||
do-install:
|
|
||||||
cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${STAGEDIR}${DATADIR}
|
|
||||||
${INSTALL_SCRIPT} ${WRKDIR}/Logseq ${STAGEDIR}${PREFIX}/bin
|
|
||||||
${INSTALL_DATA} ${PATCHDIR}/Logseq.desktop ${STAGEDIR}${DESKTOPDIR}/Logseq.desktop
|
|
||||||
${INSTALL_DATA} ${WRKSRC}/resources/app/icon.png ${STAGEDIR}${PREFIX}/share/pixmaps/Logseq.png
|
|
||||||
${FIND} ${STAGEDIR}${DATADIR} -type d -empty -delete
|
|
||||||
${MV} ${STAGEDIR}${DATADIR}/resources/app/node_modules/@logseq/rsapi-linux-x64-gnu \
|
|
||||||
${STAGEDIR}${DATADIR}/resources/app/node_modules/@logseq/rsapi-freebsd-x64
|
|
||||||
${RM} ${STAGEDIR}${DATADIR}/resources/app/node_modules/@logseq/rsapi-freebsd-x64/rsapi.linux-x64-gnu.node
|
|
||||||
${INSTALL_PROGRAM} ${WRKDIR}/rsapi.freebsd-x64.node ${STAGEDIR}${DATADIR}/resources/app/node_modules/@logseq/rsapi-freebsd-x64
|
|
||||||
${RM} -r ${STAGEDIR}${DATADIR}/resources/app/node_modules/better-sqlite3/bin
|
|
||||||
${RM} -r ${STAGEDIR}${DATADIR}/resources/app/node_modules/better-sqlite3/build/Release
|
|
||||||
${INSTALL_PROGRAM} ${WRKDIR}/better_sqlite3.node ${STAGEDIR}${DATADIR}/resources/app/node_modules/better-sqlite3/build
|
|
||||||
${RM} -r ${STAGEDIR}${DATADIR}/resources/app/node_modules/dugite/git
|
|
||||||
|
|
||||||
repackage-node-modules:
|
|
||||||
pkg info curl git yarn npm zip > /dev/null
|
|
||||||
${MKDIR} /tmp/logseq/
|
|
||||||
curl https://sh.rustup.rs -sSf --output ${WRKDIR}/rustup.sh
|
|
||||||
${SETENV} HOME=${WRKDIR}/home \
|
|
||||||
sh ${WRKDIR}/rustup.sh -y --profile minimal --default-toolchain stable
|
|
||||||
|
|
||||||
git clone https://github.com/logseq/rsapi.git ${WRKDIR}/rsapi-git
|
|
||||||
cd ${WRKDIR}/rsapi-git && git checkout ${RSAPI_HASH}
|
|
||||||
cd ${WRKDIR}/rsapi-git && ${SETENV} HOME=${WRKDIR}/home PATH=${PATH}:${WRKDIR}/home/.cargo/bin \
|
|
||||||
yarn install --immutable --mode=skip-build
|
|
||||||
cd ${WRKDIR}/rsapi-git && ${SETENV} HOME=${WRKDIR}/home PATH=${PATH}:${WRKDIR}/home/.cargo/bin \
|
|
||||||
yarn build
|
|
||||||
${STRIP_CMD} ${WRKDIR}/rsapi-git/packages/rsapi/rsapi.freebsd-x64.node
|
|
||||||
cd ${WRKDIR}/rsapi-git/packages/rsapi && zip /tmp/logseq/rsapi-${RSAPI_HASH}.freebsd-x64.node.zip rsapi.freebsd-x64.node
|
|
||||||
|
|
||||||
git clone https://github.com/WiseLibs/better-sqlite3.git ${WRKDIR}/better-sqlite
|
|
||||||
cd ${WRKDIR}/better-sqlite && git checkout v${BETTER_SQLITE_VERSION}
|
|
||||||
${SED} -i.bak -e 's|node-gyp rebuild|node-gyp rebuild --arch=x64 --dist-url=https://electronjs.org/headers --target=${ELECTRON_VER}|g' \
|
|
||||||
${WRKDIR}/better-sqlite/package.json
|
|
||||||
cd ${WRKDIR}/better-sqlite && ${SETENV} HOME=${WRKDIR}/home \
|
|
||||||
npm install --ignore-scripts
|
|
||||||
cd ${WRKDIR}/better-sqlite && ${SETENV} HOME=${WRKDIR}/home \
|
|
||||||
npm run build-release
|
|
||||||
${STRIP_CMD} ${WRKDIR}/better-sqlite/build/Release/better_sqlite3.node
|
|
||||||
cd ${WRKDIR}/better-sqlite/build/Release && zip /tmp/logseq/better-sqlite-${BETTER_SQLITE_VERSION}.node.zip better_sqlite3.node
|
|
||||||
|
|
||||||
@cd /tmp \
|
|
||||||
&& sha256 logseq/rsapi-${RSAPI_HASH}.freebsd-x64.node.zip \
|
|
||||||
&& ${ECHO_CMD} -n "SIZE (logseq/rsapi-${RSAPI_HASH}.freebsd-x64.node.zip) = " \
|
|
||||||
&& ${STAT} -f %z /tmp/logseq/rsapi-${RSAPI_HASH}.freebsd-x64.node.zip \
|
|
||||||
&& sha256 logseq/better-sqlite-${BETTER_SQLITE_VERSION}.node.zip \
|
|
||||||
&& ${ECHO_CMD} -n "SIZE (logseq/better-sqlite-${BETTER_SQLITE_VERSION}.node.zip) = " \
|
|
||||||
&& ${STAT} -f %z /tmp/logseq/better-sqlite-${BETTER_SQLITE_VERSION}.node.zip
|
|
||||||
@${ECHO_CMD}
|
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
|
@ -1,7 +0,0 @@
|
|||||||
TIMESTAMP = 1713615175
|
|
||||||
SHA256 (Logseq-linux-x64-0.10.8.zip) = 34a6cfd14112fc580dc40297af6b00018c7238ddad6382f88ee5925e1b34b779
|
|
||||||
SIZE (Logseq-linux-x64-0.10.8.zip) = 189513360
|
|
||||||
SHA256 (logseq/rsapi-d731cc44acb903a41c5e0b8dc7e576cc2d35ceb4.freebsd-x64.node.zip) = 5e78deff1d7dc25dec9b6504f2e4bb00223372a603ac15f21e4acd877f3dde26
|
|
||||||
SIZE (logseq/rsapi-d731cc44acb903a41c5e0b8dc7e576cc2d35ceb4.freebsd-x64.node.zip) = 2376857
|
|
||||||
SHA256 (logseq/better-sqlite-9.3.0.node.zip) = fee02a179674b1e83cb147718016450eaf34fc7742ece2967973d979058e540d
|
|
||||||
SIZE (logseq/better-sqlite-9.3.0.node.zip) = 974113
|
|
@ -1,8 +0,0 @@
|
|||||||
[Desktop Entry]
|
|
||||||
Type=Application
|
|
||||||
Name=Logseq
|
|
||||||
Comment=Open Source platform for knowledge sharing and management
|
|
||||||
Icon=Logseq
|
|
||||||
Exec=Logseq %u
|
|
||||||
Categories=Office;
|
|
||||||
MimeType=x-scheme-handler/logseq
|
|
@ -1,10 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
# workaround Chromium bug https://bugs.chromium.org/p/chromium/issues/detail?id=918234
|
|
||||||
if [ "$DBUS_SESSION_BUS_ADDRESS" = "" ]; then
|
|
||||||
export DBUS_SESSION_BUS_ADDRESS="autolaunch:"
|
|
||||||
fi
|
|
||||||
|
|
||||||
export GIT_EXEC_PATH=%%LOCALBASE%%/bin/git
|
|
||||||
|
|
||||||
exec %%DATADIR%%/Logseq "$@"
|
|
@ -1,26 +0,0 @@
|
|||||||
--- resources/app/node_modules/@logseq/rsapi-linux-x64-gnu/package.json.orig 2024-02-29 15:29:42 UTC
|
|
||||||
+++ resources/app/node_modules/@logseq/rsapi-linux-x64-gnu/package.json
|
|
||||||
@@ -1,19 +1,19 @@
|
|
||||||
{
|
|
||||||
- "name": "@logseq/rsapi-linux-x64-gnu",
|
|
||||||
+ "name": "@logseq/rsapi-freebsd-x64",
|
|
||||||
"private": false,
|
|
||||||
"publishConfig": {
|
|
||||||
"access": "public"
|
|
||||||
},
|
|
||||||
"version": "0.0.84",
|
|
||||||
"os": [
|
|
||||||
- "linux"
|
|
||||||
+ "freebsd"
|
|
||||||
],
|
|
||||||
"cpu": [
|
|
||||||
"x64"
|
|
||||||
],
|
|
||||||
- "main": "rsapi.linux-x64-gnu.node",
|
|
||||||
+ "main": "rsapi.freebsd-x64.node",
|
|
||||||
"files": [
|
|
||||||
- "rsapi.linux-x64-gnu.node"
|
|
||||||
+ "rsapi.freebsd-x64.node"
|
|
||||||
],
|
|
||||||
"license": "MIT",
|
|
||||||
"engines": {
|
|
@ -1,5 +0,0 @@
|
|||||||
Logseq is a knowledge management and collaboration platform. It focuses on
|
|
||||||
privacy, longevity, and user control. Logseq offers a range of powerful tools
|
|
||||||
for knowledge management, collaboration, PDF annotation, and task management
|
|
||||||
with support for multiple file formats, including Markdown and Org-mode, and
|
|
||||||
various features for organizing and structuring your notes.
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user