Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Apr 2019 11:12:43 +0000 (UTC)
From:      Philip Paeps <philip@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r500099 - in head/net-im: . coyim coyim/files
Message-ID:  <201904261112.x3QBCh8g017086@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: philip
Date: Fri Apr 26 11:12:43 2019
New Revision: 500099
URL: https://svnweb.freebsd.org/changeset/ports/500099

Log:
  Add net-im/coyim 0.3.11
  
  Safe and secure by default chat client
  
  CoyIM is a chat client that is safe and secure by default: no settings to
  change, no plugins to install, no computer configuration to change.
  
  WWW: https://coy.im
  
  PR:		237542
  Submitted by:	Santhosh Raju <santhosh.raju@gmail.com>

Added:
  head/net-im/coyim/
  head/net-im/coyim/Makefile   (contents, props changed)
  head/net-im/coyim/distinfo   (contents, props changed)
  head/net-im/coyim/files/
  head/net-im/coyim/files/patch-vendor_github.com_gotk3_gotk3_pango_fontconfig.go.h   (contents, props changed)
  head/net-im/coyim/pkg-descr   (contents, props changed)
Modified:
  head/net-im/Makefile

Modified: head/net-im/Makefile
==============================================================================
--- head/net-im/Makefile	Fri Apr 26 11:08:44 2019	(r500098)
+++ head/net-im/Makefile	Fri Apr 26 11:12:43 2019	(r500099)
@@ -11,6 +11,7 @@ PORTREVISION=	1
     SUBDIR += coccinella
     SUBDIR += convey
     SUBDIR += corebird
+    SUBDIR += coyim
     SUBDIR += cutegram
     SUBDIR += diligent
     SUBDIR += dino

Added: head/net-im/coyim/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-im/coyim/Makefile	Fri Apr 26 11:12:43 2019	(r500099)
@@ -0,0 +1,63 @@
+# $FreeBSD$
+
+PORTNAME=	coyim
+DISTVERSIONPREFIX=	v
+DISTVERSION=	0.3.11
+CATEGORIES=	net-im
+
+MAINTAINER=	support@coy.im
+COMMENT=	Safe and secure by default chat client
+
+LICENSE=	GPLv3
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	go:lang/go
+LIB_DEPENDS=	libfontconfig.so:x11-fonts/fontconfig \
+		libfreetype.so:print/freetype2
+
+USES=		gnome pkgconfig
+
+USE_GNOME=	atk cairo gdkpixbuf2 glib20 gtk30 pango
+
+OPTIONS_DEFINE=	NLS
+OPTIONS_SUB=	yes
+
+NLS_USES=	gettext
+NLS_CONFIGURE_ENABLE=	nls
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	coyim
+GH_SUBDIR=	src/github.com/${GH_ACCOUNT}/${PORTNAME}
+
+SUB_LIST=	PORTNAME=${PORTNAME}
+
+PLIST_FILES=	bin/coyim \
+		share/applications/coyim.desktop \
+		share/pixmaps/coyim.png
+
+GTK_BUILD_TAG=	"$$(pkg-config --modversion gtk+-3.0 | ${TR} . _ | cut -d '_' -f 1-2)"
+
+COYIM_ICON=		coyim.png
+COYIM_ICON_SRC=		${WRKSRC}/build/mac-bundle/coy.iconset/icon_32x32@2x.png
+COYIM_DESKTOP=		${WRKSRC}/build/coyim.desktop
+
+INSTALLATION_DIRS+=	share/applications share/pixmaps
+
+do-build:
+	cd ${WRKSRC}/${GH_SUBDIR} && \
+		${SETENV} ${MAKE_ENV} GOPATH=${WRKSRC} \
+		go build -tags ${GTK_BUILD_TAG} -o ${PORTNAME}
+
+post-build:
+	@${REINPLACE_CMD} -e '/^#/d' \
+		-e '/^$$/d' \
+		${COYIM_DESKTOP}
+	${ECHO} "Exec=${PREFIX}/bin/coyim" >> ${COYIM_DESKTOP}
+	${ECHO} "Icon=${COYIM_ICON}" >> ${COYIM_DESKTOP}
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_DATA} ${COYIM_DESKTOP} ${STAGEDIR}${PREFIX}/share/applications/
+	${INSTALL_DATA} ${COYIM_ICON_SRC} ${STAGEDIR}${PREFIX}/share/pixmaps/${COYIM_ICON}
+
+.include <bsd.port.mk>

Added: head/net-im/coyim/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-im/coyim/distinfo	Fri Apr 26 11:12:43 2019	(r500099)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1555206035
+SHA256 (coyim-coyim-v0.3.11_GH0.tar.gz) = 4717901462f027578369358c8772eb5b14e22f053fc30e4c9dbcc2b053374a41
+SIZE (coyim-coyim-v0.3.11_GH0.tar.gz) = 3803018

Added: head/net-im/coyim/files/patch-vendor_github.com_gotk3_gotk3_pango_fontconfig.go.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-im/coyim/files/patch-vendor_github.com_gotk3_gotk3_pango_fontconfig.go.h	Fri Apr 26 11:12:43 2019	(r500099)
@@ -0,0 +1,12 @@
+Do proper type conversion for FreeBSD's fontconfig(3).
+
+--- vendor/github.com/gotk3/gotk3/pango/fontconfig.go.h.orig	2019-04-14 03:24:49 UTC
++++ vendor/github.com/gotk3/gotk3/pango/fontconfig.go.h
+@@ -2,6 +2,6 @@
+ #include <fontconfig/fontconfig.h>
+ 
+ static int addFont(char* font) {
+-    FcBool fontAddStatus = FcConfigAppFontAddFile(FcConfigGetCurrent(), font);
++    FcBool fontAddStatus = FcConfigAppFontAddFile(FcConfigGetCurrent(), (unsigned char*)font);
+     return fontAddStatus;
+ }

Added: head/net-im/coyim/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-im/coyim/pkg-descr	Fri Apr 26 11:12:43 2019	(r500099)
@@ -0,0 +1,5 @@
+CoyIM is a chat client that is safe and secure by default: no
+settings to change, no plugins to install, no computer configuration
+to change.
+
+WWW: https://coy.im



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201904261112.x3QBCh8g017086>