aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAshish SHUKLA <ashish@FreeBSD.org>2019-02-24 22:18:32 +0000
committerAshish SHUKLA <ashish@FreeBSD.org>2019-02-24 22:18:32 +0000
commit63727112f30599576ca62783af98af21a8db4248 (patch)
tree5c24fa37e1c0abbdbc20b9bd23680910f39777a1
parentafb6492ddc23629eac33676c79496bc72f2173ff (diff)
downloadports-63727112f30599576ca62783af98af21a8db4248.tar.gz
ports-63727112f30599576ca62783af98af21a8db4248.zip
Notes
-rw-r--r--net-im/Makefile1
-rw-r--r--net-im/dino/Makefile61
-rw-r--r--net-im/dino/distinfo3
-rw-r--r--net-im/dino/files/patch-nwhitehorn-dino.diff50
-rw-r--r--net-im/dino/pkg-descr5
-rw-r--r--net-im/dino/pkg-plist97
6 files changed, 217 insertions, 0 deletions
diff --git a/net-im/Makefile b/net-im/Makefile
index dd2eedc5805e..e2aead152130 100644
--- a/net-im/Makefile
+++ b/net-im/Makefile
@@ -12,6 +12,7 @@
SUBDIR += corebird
SUBDIR += cutegram
SUBDIR += diligent
+ SUBDIR += dino
SUBDIR += echat
SUBDIR += ejabberd
SUBDIR += ekiga
diff --git a/net-im/dino/Makefile b/net-im/dino/Makefile
new file mode 100644
index 000000000000..ae041c4b3b0c
--- /dev/null
+++ b/net-im/dino/Makefile
@@ -0,0 +1,61 @@
+# $FreeBSD$
+
+PORTNAME= dino
+PORTVERSION= 0.0.20190220
+CATEGORIES= net-im
+
+MAINTAINER= ashish@FreeBSD.org
+COMMENT= Modern XMPP Chat Client using GTK+/Vala
+
+LICENSE= GPLv3
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= vala:lang/vala
+LIB_DEPENDS= libsqlite3.so:databases/sqlite3 \
+ libgee-0.8.so:devel/libgee \
+ libicuuc.so:devel/icu \
+ libsoup-2.4.so:devel/libsoup
+
+OPTIONS_DEFINE= OMEMO UPLOAD GNUPG
+OPTIONS_DEFAULT= OMEMO UPLOAD GNUPG
+OPTIONS_SUB= yes
+
+USES= cmake desktop-file-utils gettext-tools gnome \
+ ninja pkgconfig
+
+USE_GITHUB= yes
+GH_TAGNAME= 6de86c27
+HAS_CONFIGURE= yes
+CONFIGURE_ENV= SHARED_SIGNAL_PROTOCOL=yes
+LDFLAGS+= -L${LOCALBASE}/lib
+LDFLAGS+= -Wl,--export-dynamic
+INSTALLS_ICONS= yes
+
+USE_GNOME= cairo gdkpixbuf2 glib20 gnomeprefix gtk30 intlhack
+
+OMEMO_DESC= OMEMO plugin
+UPLOAD_DESC= HTTP file upload plugin
+OMEMO_LIB_DEPENDS= libgcrypt.so:security/libgcrypt \
+ libqrencode.so:graphics/libqrencode \
+ libsignal-protocol-c.so:net/libsignal
+OMEMO_VARS= ENABLED_PLUGINS+=omemo
+OMEMO_VARS_OFF= DISABLED_PLUGINS+=omemo
+UPLOAD_VARS= ENABLED_PLUGINS+=http-files
+UPLOAD_VARS_OFF= DISABLED_PLUGINS+=http-files
+GNUPG_LIB_DEPENDS= libgpgme.so:security/gpgme
+GNUPG_VARS= ENABLED_PLUGINS+=openpgp
+GNUPG_VARS_OFF= DISABLED_PLUGINS+=openpgp
+
+CMAKE_ARGS+= -DENABLED_PLUGINS="${ENABLED_PLUGINS:S/ /;/gW}"
+CMAKE_ARGS+= -DDISABLED_PLUGINS="${DISABLED_PLUGINS:S/ /;/gW}"
+
+pre-everything::
+ @if [ -z "${PACKAGE_BUILDING}" ]; then if ! ${PKG_BIN} query \
+ '%o-%Ok-%Od' databases/sqlite3 | \
+ ${GREP} -F -wq databases/sqlite3-UNICODE61-on; then \
+ ${ECHO_MSG} "/!\ Please make sure databases/sqlite3 is built\
+ with UNICODE61 option"; \
+ exit 1; \
+ fi; fi
+
+.include <bsd.port.mk>
diff --git a/net-im/dino/distinfo b/net-im/dino/distinfo
new file mode 100644
index 000000000000..2ff38ee01828
--- /dev/null
+++ b/net-im/dino/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1550952485
+SHA256 (dino-dino-0.0.20190220-6de86c27_GH0.tar.gz) = 5fffbf2c855955da791a56e1f8df5b8f29d36480849642d26ddebaee5669d457
+SIZE (dino-dino-0.0.20190220-6de86c27_GH0.tar.gz) = 349007
diff --git a/net-im/dino/files/patch-nwhitehorn-dino.diff b/net-im/dino/files/patch-nwhitehorn-dino.diff
new file mode 100644
index 000000000000..c288f5713260
--- /dev/null
+++ b/net-im/dino/files/patch-nwhitehorn-dino.diff
@@ -0,0 +1,50 @@
+
+Source: http://people.freebsd.org/~nwhitehorn/dino.diff
+ https://github.com/dino/dino/issues/344
+
+
+Index: plugins/gpgme-vala/CMakeLists.txt
+===================================================================
+--- plugins/gpgme-vala/CMakeLists.txt (revision 338)
++++ plugins/gpgme-vala/CMakeLists.txt (working copy)
+@@ -47,6 +47,6 @@
+ add_definitions(${CFLAGS})
+ add_library(gpgme-vala ${GPGME_VALA_C} src/gpgme_fix.c)
+ add_dependencies(gpgme-vala gpgme-vapi)
+-target_link_libraries(gpgme-vala ${GPGME_VALA_PACKAGES} gpgme)
++target_link_libraries(gpgme-vala ${GPGME_VALA_PACKAGES} ${GPGME_LIBRARY})
+ set_property(TARGET gpgme-vala PROPERTY POSITION_INDEPENDENT_CODE ON)
+
+Index: plugins/omemo/CMakeLists.txt
+===================================================================
+--- plugins/omemo/CMakeLists.txt (revision 338)
++++ plugins/omemo/CMakeLists.txt (working copy)
+@@ -58,7 +58,7 @@
+ add_definitions(${VALA_CFLAGS} -DGETTEXT_PACKAGE=\"${GETTEXT_PACKAGE}\" -DLOCALE_INSTALL_DIR=\"${LOCALE_INSTALL_DIR}\")
+ add_library(omemo SHARED ${OMEMO_VALA_C} ${OMEMO_GRESOURCES_TARGET})
+ add_dependencies(omemo ${GETTEXT_PACKAGE}-translations)
+-target_link_libraries(omemo libdino signal-protocol-vala ${OMEMO_PACKAGES})
++target_link_libraries(omemo libdino signal-protocol-vala ${OMEMO_PACKAGES} ${GCrypt_LIBRARY})
+ set_target_properties(omemo PROPERTIES PREFIX "")
+ set_target_properties(omemo PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/plugins/)
+
+Index: plugins/signal-protocol/CMakeLists.txt
+===================================================================
+--- plugins/signal-protocol/CMakeLists.txt (revision 338)
++++ plugins/signal-protocol/CMakeLists.txt (working copy)
+@@ -105,7 +105,7 @@
+ add_definitions(${CFLAGS})
+ add_library(signal-protocol-vala ${SIGNAL_PROTOCOL_VALA_C} ${CMAKE_CURRENT_SOURCE_DIR}/src/signal_helper.c)
+ add_dependencies(signal-protocol-vala signal-protocol-vapi)
+-target_link_libraries(signal-protocol-vala ${SIGNAL_PROTOCOL_PACKAGES} gcrypt signal-protocol-c m)
++target_link_libraries(signal-protocol-vala ${SIGNAL_PROTOCOL_PACKAGES} ${GCrypt_LIBRARY} signal-protocol-c m)
+ set_property(TARGET signal-protocol-vala PROPERTY POSITION_INDEPENDENT_CODE ON)
+
+ if(BUILD_TESTS)
+@@ -129,4 +129,4 @@
+ add_executable(signal-protocol-vala-test ${SIGNAL_TEST_VALA_C})
+ add_dependencies(signal-protocol-vala-test signal-protocol-vala)
+ target_link_libraries(signal-protocol-vala-test signal-protocol-vala ${SIGNAL_PROTOCOL_PACKAGES})
+-endif(BUILD_TESTS)
+\ No newline at end of file
++endif(BUILD_TESTS)
diff --git a/net-im/dino/pkg-descr b/net-im/dino/pkg-descr
new file mode 100644
index 000000000000..476d9178b567
--- /dev/null
+++ b/net-im/dino/pkg-descr
@@ -0,0 +1,5 @@
+Dino is a modern open-source chat client for the desktop. It focuses
+on providing a clean and reliable Jabber/XMPP experience while having
+your privacy in mind.
+
+WWW: https://dino.im
diff --git a/net-im/dino/pkg-plist b/net-im/dino/pkg-plist
new file mode 100644
index 000000000000..40f673c88c75
--- /dev/null
+++ b/net-im/dino/pkg-plist
@@ -0,0 +1,97 @@
+bin/dino
+include/dino.h
+include/dino_i18n.h
+include/qlite.h
+include/xmpp-vala.h
+%%UPLOAD%%lib/dino/plugins/http-files.so
+%%OMEMO%%lib/dino/plugins/omemo.so
+%%GNUPG%%lib/dino/plugins/openpgp.so
+lib/libdino.so
+lib/libdino.so.0
+lib/libdino.so.0.0
+lib/libqlite.so
+lib/libqlite.so.0
+lib/libqlite.so.0.1
+lib/libxmpp-vala.so
+lib/libxmpp-vala.so.0
+lib/libxmpp-vala.so.0.1
+share/applications/im.dino.Dino.desktop
+share/dbus-1/services/im.dino.Dino.service
+share/icons/hicolor/scalable/apps/im.dino.Dino.svg
+share/icons/hicolor/scalable/status/dino-changes-prevent-symbolic.svg
+share/icons/hicolor/scalable/status/dino-double-tick-symbolic.svg
+share/icons/hicolor/scalable/status/dino-qr-code-symbolic.svg
+share/icons/hicolor/scalable/status/dino-status-away.svg
+share/icons/hicolor/scalable/status/dino-status-chat.svg
+share/icons/hicolor/scalable/status/dino-status-dnd.svg
+share/icons/hicolor/scalable/status/dino-status-online.svg
+share/icons/hicolor/scalable/status/dino-tick-symbolic.svg
+share/icons/hicolor/symbolic/apps/im.dino.Dino-symbolic.svg
+%%OMEMO%%share/locale/ar/LC_MESSAGES/dino-omemo.mo
+%%GNUPG%%share/locale/ar/LC_MESSAGES/dino-openpgp.mo
+share/locale/ar/LC_MESSAGES/dino.mo
+%%OMEMO%%share/locale/ca/LC_MESSAGES/dino-omemo.mo
+%%GNUPG%%share/locale/ca/LC_MESSAGES/dino-openpgp.mo
+share/locale/ca/LC_MESSAGES/dino.mo
+%%OMEMO%%share/locale/de/LC_MESSAGES/dino-omemo.mo
+%%GNUPG%%share/locale/de/LC_MESSAGES/dino-openpgp.mo
+share/locale/de/LC_MESSAGES/dino.mo
+%%OMEMO%%share/locale/en/LC_MESSAGES/dino-omemo.mo
+%%GNUPG%%share/locale/en/LC_MESSAGES/dino-openpgp.mo
+share/locale/en/LC_MESSAGES/dino.mo
+share/locale/eo/LC_MESSAGES/dino.mo
+%%OMEMO%%share/locale/es/LC_MESSAGES/dino-omemo.mo
+%%GNUPG%%share/locale/es/LC_MESSAGES/dino-openpgp.mo
+share/locale/es/LC_MESSAGES/dino.mo
+%%OMEMO%%share/locale/eu/LC_MESSAGES/dino-omemo.mo
+%%GNUPG%%share/locale/eu/LC_MESSAGES/dino-openpgp.mo
+share/locale/eu/LC_MESSAGES/dino.mo
+share/locale/fi/LC_MESSAGES/dino.mo
+%%OMEMO%%share/locale/fr/LC_MESSAGES/dino-omemo.mo
+%%GNUPG%%share/locale/fr/LC_MESSAGES/dino-openpgp.mo
+share/locale/fr/LC_MESSAGES/dino.mo
+%%OMEMO%%share/locale/gl/LC_MESSAGES/dino-omemo.mo
+%%GNUPG%%share/locale/gl/LC_MESSAGES/dino-openpgp.mo
+share/locale/gl/LC_MESSAGES/dino.mo
+%%OMEMO%%share/locale/hu/LC_MESSAGES/dino-omemo.mo
+%%GNUPG%%share/locale/hu/LC_MESSAGES/dino-openpgp.mo
+share/locale/hu/LC_MESSAGES/dino.mo
+%%OMEMO%%share/locale/it/LC_MESSAGES/dino-omemo.mo
+%%GNUPG%%share/locale/it/LC_MESSAGES/dino-openpgp.mo
+share/locale/it/LC_MESSAGES/dino.mo
+share/locale/ja/LC_MESSAGES/dino.mo
+%%OMEMO%%share/locale/lb/LC_MESSAGES/dino-omemo.mo
+%%GNUPG%%share/locale/lb/LC_MESSAGES/dino-openpgp.mo
+share/locale/lb/LC_MESSAGES/dino.mo
+%%OMEMO%%share/locale/nb/LC_MESSAGES/dino-omemo.mo
+%%GNUPG%%share/locale/nb/LC_MESSAGES/dino-openpgp.mo
+share/locale/nb/LC_MESSAGES/dino.mo
+%%OMEMO%%share/locale/nl/LC_MESSAGES/dino-omemo.mo
+%%GNUPG%%share/locale/nl/LC_MESSAGES/dino-openpgp.mo
+share/locale/nl/LC_MESSAGES/dino.mo
+%%OMEMO%%share/locale/nl_BE/LC_MESSAGES/dino-omemo.mo
+%%GNUPG%%share/locale/nl_BE/LC_MESSAGES/dino-openpgp.mo
+share/locale/nl_BE/LC_MESSAGES/dino.mo
+%%OMEMO%%share/locale/pl/LC_MESSAGES/dino-omemo.mo
+%%GNUPG%%share/locale/pl/LC_MESSAGES/dino-openpgp.mo
+share/locale/pl/LC_MESSAGES/dino.mo
+share/locale/pt_BR/LC_MESSAGES/dino.mo
+%%OMEMO%%share/locale/ro/LC_MESSAGES/dino-omemo.mo
+%%GNUPG%%share/locale/ro/LC_MESSAGES/dino-openpgp.mo
+share/locale/ro/LC_MESSAGES/dino.mo
+%%OMEMO%%share/locale/ru/LC_MESSAGES/dino-omemo.mo
+%%GNUPG%%share/locale/ru/LC_MESSAGES/dino-openpgp.mo
+share/locale/ru/LC_MESSAGES/dino.mo
+%%OMEMO%%share/locale/zh_Hans/LC_MESSAGES/dino-omemo.mo
+%%GNUPG%%share/locale/zh_Hans/LC_MESSAGES/dino-openpgp.mo
+share/locale/zh_Hans/LC_MESSAGES/dino.mo
+%%OMEMO%%share/locale/zh_Hant/LC_MESSAGES/dino-omemo.mo
+%%GNUPG%%share/locale/zh_Hant/LC_MESSAGES/dino-openpgp.mo
+share/locale/zh_Hant/LC_MESSAGES/dino.mo
+share/metainfo/im.dino.Dino.appdata.xml
+share/vala/vapi/dino.deps
+share/vala/vapi/dino.vapi
+share/vala/vapi/qlite.deps
+share/vala/vapi/qlite.vapi
+share/vala/vapi/xmpp-vala.deps
+share/vala/vapi/xmpp-vala.vapi