Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F161410811
D38691.id117677.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
7 KB
Referenced Files
None
Subscribers
None
D38691.id117677.diff
View Options
Index: textproc/Makefile
===================================================================
--- textproc/Makefile
+++ textproc/Makefile
@@ -503,6 +503,7 @@
SUBDIR += nuspell
SUBDIR += nux
SUBDIR += ny-aspell
+ SUBDIR += obsidian
SUBDIR += ocaml-csv
SUBDIR += ocaml-expat
SUBDIR += ocaml-text
Index: textproc/obsidian/Makefile
===================================================================
--- /dev/null
+++ textproc/obsidian/Makefile
@@ -0,0 +1,94 @@
+# This port will not be packaged by the official FreeBSD build cluster, because
+# its license doesn't permit redistribution.
+#
+# To build this port locally with minimal effort use
+# cd <PORTSDIR>/textproc/obsidian
+# pkg install `make -V 'electron${ELECTRON_VERSION}'`
+# make USE_PACKAGE_DEPENDS_ONLY=yes install clean
+
+PORTNAME= obsidian
+PORTVERSION= 1.1.9
+CATEGORIES= textproc
+# Icon is taken from the Nix build recipe
+# https://github.com/NixOS/nixpkgs/blob/de5448dab588ad41aef40f8c7c0c230981656698/pkgs/applications/misc/obsidian/default.nix#L31-L34
+MASTER_SITES= https://github.com/obsidianmd/obsidian-releases/releases/download/v${PORTVERSION}/ \
+ https://forum.obsidian.md/uploads/default/original/1X/:icon
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
+ bf119bd48f748f4fd2d65f2d1bb05d3c806883b5.png:icon
+EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
+
+MAINTAINER= arrowd@FreeBSD.org
+COMMENT= Powerful and extensible knowledge base that works on top of plain text files
+WWW= https://obsidian.md
+
+LICENSE= EULA
+LICENSE_NAME= End User License Agreement
+LICENSE_TEXT= See https://obsidian.md/terms
+LICENSE_PERMS=
+
+BUILD_DEPENDS= electron${ELECTRON_VERSION}:devel/electron${ELECTRON_VERSION}
+RUN_DEPENDS= ${BUILD_DEPENDS}
+
+# All deps below are there only to please stage-qa
+
+LIB_DEPENDS= libatk-bridge-2.0.so:accessibility/at-spi2-atk \
+ libatspi.so:accessibility/at-spi2-core \
+ libsnappy.so:archivers/snappy \
+ libopus.so:audio/opus \
+ libdbus-1.so:devel/dbus \
+ libicuuc.so:devel/icu \
+ libevent.so:devel/libevent \
+ libnspr4.so:devel/nspr \
+ libFLAC.so:audio/flac \
+ libpci.so:devel/libpci \
+ libdrm.so:graphics/libdrm \
+ libpng.so:graphics/png \
+ libwayland-client.so:graphics/wayland \
+ libwebp.so:graphics/webp \
+ libopenh264.so:multimedia/openh264 \
+ libharfbuzz.so:print/harfbuzz \
+ libexpat.so:textproc/expat2 \
+ libnss3.so:security/nss \
+ libxkbcommon.so:x11/libxkbcommon \
+ libxshmfence.so:x11/libxshmfence \
+ libfontconfig.so:x11-fonts/fontconfig \
+ libcups.so.2:print/cups \
+ libasound.so.2:audio/alsa-lib
+
+USES= desktop-file-utils gettext-runtime gl gnome iconv jpeg xorg
+
+USE_GL= gbm gl glesv2
+USE_GNOME= cairo gdkpixbuf2 glib20 gtk30 libxml2 libxslt
+USE_XORG= x11 xcb xcomposite xcursor xdamage xext xfixes xi xrandr \
+ xrender xscrnsaver xtst
+
+NO_BUILD= yes
+
+ELECTRON_VERSION= 21
+ELECTRON_FILES= chromedriver \
+ libEGL.so \
+ libGLESv2.so \
+ libffmpeg.so \
+ libvk_swiftshader.so \
+ libvulkan.so \
+ resources.pak \
+ snapshot_blob.bin \
+ v8_context_snapshot.bin
+
+do-install:
+ cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${STAGEDIR}${DATADIR}
+ ${LN} -s ../share/obsidian/obsidian ${STAGEDIR}${PREFIX}/bin/obsidian
+
+post-install:
+ ${RM} ${STAGEDIR}${DATADIR}/chrome-sandbox
+ ${RM} ${STAGEDIR}${DATADIR}/libvulkan.so.1
+.for f in ${ELECTRON_FILES}
+ ${RM} ${STAGEDIR}${DATADIR}/${f}
+ ${LN} -s ${LOCALBASE}/share/electron${ELECTRON_VERSION}/${f} ${STAGEDIR}${DATADIR}/${f}
+.endfor
+ ${CP} ${LOCALBASE}/share/electron${ELECTRON_VERSION}/electron ${STAGEDIR}${DATADIR}/obsidian
+ ${INSTALL_DATA} ${PATCHDIR}/obsidian.desktop ${STAGEDIR}${DESKTOPDIR}/obsidian.desktop
+ ${INSTALL_DATA} ${DISTDIR}/bf119bd48f748f4fd2d65f2d1bb05d3c806883b5.png ${STAGEDIR}${PREFIX}/share/pixmaps/obsidian.png
+
+.include <bsd.port.mk>
+
Index: textproc/obsidian/distinfo
===================================================================
--- /dev/null
+++ textproc/obsidian/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1676894388
+SHA256 (obsidian-1.1.9.tar.gz) = 74547b2da0d1270a71acdc8f36c7868baea02001ce29fe40bb655797b4811921
+SIZE (obsidian-1.1.9.tar.gz) = 93057094
+SHA256 (bf119bd48f748f4fd2d65f2d1bb05d3c806883b5.png) = 4227a64156df4043395183dc7b9b23b809df79292d44c208e9649adcf7b2d4a3
+SIZE (bf119bd48f748f4fd2d65f2d1bb05d3c806883b5.png) = 11970
Index: textproc/obsidian/files/obsidian.desktop
===================================================================
--- /dev/null
+++ textproc/obsidian/files/obsidian.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Type=Application
+Version=1.0
+Name=Obsidian
+GenericName=Knowledge base
+Comment=Knowledge base
+Icon=obsidian
+Exec=obsidian %u
+Categories=Office;
+MimeType=x-scheme-handler/obsidian
Index: textproc/obsidian/pkg-descr
===================================================================
--- /dev/null
+++ textproc/obsidian/pkg-descr
@@ -0,0 +1,3 @@
+Obsidian is an Electron-based desktop application that allows creating a
+knowledge base from Markdown-formatted notes. Notes can be connected and
+visualized as a graph.
\ No newline at end of file
Index: textproc/obsidian/pkg-plist
===================================================================
--- /dev/null
+++ textproc/obsidian/pkg-plist
@@ -0,0 +1,80 @@
+bin/obsidian
+share/applications/obsidian.desktop
+%%DATADIR%%/LICENSE.electron.txt
+%%DATADIR%%/LICENSES.chromium.html
+%%DATADIR%%/chrome_100_percent.pak
+%%DATADIR%%/chrome_200_percent.pak
+%%DATADIR%%/chrome_crashpad_handler
+%%DATADIR%%/chromedriver
+%%DATADIR%%/icudtl.dat
+%%DATADIR%%/libEGL.so
+%%DATADIR%%/libGLESv2.so
+%%DATADIR%%/libffmpeg.so
+%%DATADIR%%/libvk_swiftshader.so
+%%DATADIR%%/libvulkan.so
+%%DATADIR%%/locales/af.pak
+%%DATADIR%%/locales/am.pak
+%%DATADIR%%/locales/ar.pak
+%%DATADIR%%/locales/bg.pak
+%%DATADIR%%/locales/bn.pak
+%%DATADIR%%/locales/ca.pak
+%%DATADIR%%/locales/cs.pak
+%%DATADIR%%/locales/da.pak
+%%DATADIR%%/locales/de.pak
+%%DATADIR%%/locales/el.pak
+%%DATADIR%%/locales/en-GB.pak
+%%DATADIR%%/locales/en-US.pak
+%%DATADIR%%/locales/es-419.pak
+%%DATADIR%%/locales/es.pak
+%%DATADIR%%/locales/et.pak
+%%DATADIR%%/locales/fa.pak
+%%DATADIR%%/locales/fi.pak
+%%DATADIR%%/locales/fil.pak
+%%DATADIR%%/locales/fr.pak
+%%DATADIR%%/locales/gu.pak
+%%DATADIR%%/locales/he.pak
+%%DATADIR%%/locales/hi.pak
+%%DATADIR%%/locales/hr.pak
+%%DATADIR%%/locales/hu.pak
+%%DATADIR%%/locales/id.pak
+%%DATADIR%%/locales/it.pak
+%%DATADIR%%/locales/ja.pak
+%%DATADIR%%/locales/kn.pak
+%%DATADIR%%/locales/ko.pak
+%%DATADIR%%/locales/lt.pak
+%%DATADIR%%/locales/lv.pak
+%%DATADIR%%/locales/ml.pak
+%%DATADIR%%/locales/mr.pak
+%%DATADIR%%/locales/ms.pak
+%%DATADIR%%/locales/nb.pak
+%%DATADIR%%/locales/nl.pak
+%%DATADIR%%/locales/pl.pak
+%%DATADIR%%/locales/pt-BR.pak
+%%DATADIR%%/locales/pt-PT.pak
+%%DATADIR%%/locales/ro.pak
+%%DATADIR%%/locales/ru.pak
+%%DATADIR%%/locales/sk.pak
+%%DATADIR%%/locales/sl.pak
+%%DATADIR%%/locales/sr.pak
+%%DATADIR%%/locales/sv.pak
+%%DATADIR%%/locales/sw.pak
+%%DATADIR%%/locales/ta.pak
+%%DATADIR%%/locales/te.pak
+%%DATADIR%%/locales/th.pak
+%%DATADIR%%/locales/tr.pak
+%%DATADIR%%/locales/uk.pak
+%%DATADIR%%/locales/ur.pak
+%%DATADIR%%/locales/vi.pak
+%%DATADIR%%/locales/zh-CN.pak
+%%DATADIR%%/locales/zh-TW.pak
+%%DATADIR%%/obsidian
+%%DATADIR%%/resources.pak
+%%DATADIR%%/resources/app.asar
+%%DATADIR%%/resources/app.asar.unpacked/node_modules/btime/binding.node
+%%DATADIR%%/resources/app.asar.unpacked/node_modules/get-fonts/binding.node
+%%DATADIR%%/resources/app.asar.unpacked/node_modules/vibrancy-win/binding.node
+%%DATADIR%%/resources/obsidian.asar
+%%DATADIR%%/snapshot_blob.bin
+%%DATADIR%%/v8_context_snapshot.bin
+%%DATADIR%%/vk_swiftshader_icd.json
+share/pixmaps/obsidian.png
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jul 4, 12:51 PM (4 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34670231
Default Alt Text
D38691.id117677.diff (7 KB)
Attached To
Mode
D38691: textproc/obsidian: + Markdown-based knowledge database.
Attached
Detach File
Event Timeline
Log In to Comment