aboutsummaryrefslogtreecommitdiff
path: root/net-im
diff options
context:
space:
mode:
authorKris Moore <kmoore@FreeBSD.org>2015-02-12 14:18:02 +0000
committerKris Moore <kmoore@FreeBSD.org>2015-02-12 14:18:02 +0000
commitf11a65e7632c6ff81ef64a2c7a921a99dcd44761 (patch)
tree01c39ca25237c3c4fd9134845a1bb3f4d0fc05ec /net-im
parent7df608cc22fe38ae6ea7270ad252980fcc588219 (diff)
downloadports-f11a65e7632c6ff81ef64a2c7a921a99dcd44761.tar.gz
ports-f11a65e7632c6ff81ef64a2c7a921a99dcd44761.zip
Notes
Diffstat (limited to 'net-im')
-rw-r--r--net-im/Makefile1
-rw-r--r--net-im/telegram-purple/Makefile29
-rw-r--r--net-im/telegram-purple/distinfo2
-rw-r--r--net-im/telegram-purple/files/patch-Makefile.in25
-rw-r--r--net-im/telegram-purple/pkg-descr4
-rw-r--r--net-im/telegram-purple/pkg-plist5
6 files changed, 66 insertions, 0 deletions
diff --git a/net-im/Makefile b/net-im/Makefile
index e830ae9d7040..58ea3d89e0b0 100644
--- a/net-im/Makefile
+++ b/net-im/Makefile
@@ -148,6 +148,7 @@
SUBDIR += skype-devel
SUBDIR += skype4
SUBDIR += telegram
+ SUBDIR += telegram-purple
SUBDIR += telepathy-butterfly
SUBDIR += telepathy-farsight
SUBDIR += telepathy-farstream
diff --git a/net-im/telegram-purple/Makefile b/net-im/telegram-purple/Makefile
new file mode 100644
index 000000000000..b28a47ffd2ac
--- /dev/null
+++ b/net-im/telegram-purple/Makefile
@@ -0,0 +1,29 @@
+# Created by: Kris Moore <kmoore@freebsd.org>
+# $FreeBSD$
+
+PORTNAME= telegram-purple
+PORTVERSION= 02092015
+CATEGORIES= net-im
+MASTER_SITES= http://www.pcbsd.org/~kris/software/ \
+ ftp://ftp.pcbsd.org/pub/software/
+
+MAINTAINER= kmoore@freebsd.org
+COMMENT= Libpurple plugin for Telegram messenger
+
+LICENSE= GPLv3
+
+BUILD_DEPENDS= pidgin:${PORTSDIR}/net-im/pidgin
+RUN_DEPENDS= pidgin:${PORTSDIR}/net-im/pidgin
+
+USES= gmake pkgconfig tar:xz
+USE_GNOME= glib20 libxml2
+USE_GCC= yes
+GNU_CONFIGURE= yes
+
+.include <bsd.port.pre.mk>
+
+pre-configure:
+ @${REINPLACE_CMD} -e 's|/etc/telegram-purple/server.pub|${PREFIX}/etc/telegram-purple/server.pub|g' \
+ ${WRKSRC}/telegram-purple.c
+
+.include <bsd.port.post.mk>
diff --git a/net-im/telegram-purple/distinfo b/net-im/telegram-purple/distinfo
new file mode 100644
index 000000000000..1ec8b7e0ffb8
--- /dev/null
+++ b/net-im/telegram-purple/distinfo
@@ -0,0 +1,2 @@
+SHA256 (telegram-purple-02092015.tar.xz) = 0433595129de5620a455edcfd062b3b6a6421e8165541fc251630e1c65c602f3
+SIZE (telegram-purple-02092015.tar.xz) = 285180
diff --git a/net-im/telegram-purple/files/patch-Makefile.in b/net-im/telegram-purple/files/patch-Makefile.in
new file mode 100644
index 000000000000..c0c344bd7184
--- /dev/null
+++ b/net-im/telegram-purple/files/patch-Makefile.in
@@ -0,0 +1,25 @@
+--- Makefile.in.orig 2015-02-09 14:46:54.000000000 -0500
++++ Makefile.in 2015-02-10 10:46:38.752897727 -0500
+@@ -61,12 +61,16 @@
+
+ .PHONY: install
+ install: $(PRPL_LIBNAME)
+- mkdir -p $(DESTDIR)/etc/telegram-purple
+- install -Dm 0755 $(PRPL_LIBNAME) $(DESTDIR)$(PLUGIN_DIR_PURPLE)/$(PRPL_NAME)
+- install -Dm 0644 tg-server.pub $(DESTDIR)/etc/telegram-purple/server.pub
+- install -Dm 0644 imgs/telegram16.png $(DESTDIR)$(DATA_ROOT_DIR_PURPLE)/pixmaps/pidgin/protocols/16/telegram.png
+- install -Dm 0644 imgs/telegram22.png $(DESTDIR)$(DATA_ROOT_DIR_PURPLE)/pixmaps/pidgin/protocols/22/telegram.png
+- install -Dm 0644 imgs/telegram48.png $(DESTDIR)$(DATA_ROOT_DIR_PURPLE)/pixmaps/pidgin/protocols/48/telegram.png
++ mkdir -p $(DESTDIR)$(PREFIX)/etc/telegram-purple
++ mkdir -p $(DESTDIR)$(PLUGIN_DIR_PURPLE)
++ mkdir -p $(DESTDIR)$(DATA_ROOT_DIR_PURPLE)/pixmaps/pidgin/protocols/16
++ mkdir -p $(DESTDIR)$(DATA_ROOT_DIR_PURPLE)/pixmaps/pidgin/protocols/22
++ mkdir -p $(DESTDIR)$(DATA_ROOT_DIR_PURPLE)/pixmaps/pidgin/protocols/48
++ install -m 0755 $(PRPL_LIBNAME) $(DESTDIR)$(PLUGIN_DIR_PURPLE)/$(PRPL_NAME)
++ install -m 0644 tg-server.pub $(DESTDIR)$(PREFIX)/etc/telegram-purple/server.pub
++ install -m 0644 imgs/telegram16.png $(DESTDIR)$(DATA_ROOT_DIR_PURPLE)/pixmaps/pidgin/protocols/16/telegram.png
++ install -m 0644 imgs/telegram22.png $(DESTDIR)$(DATA_ROOT_DIR_PURPLE)/pixmaps/pidgin/protocols/22/telegram.png
++ install -m 0644 imgs/telegram48.png $(DESTDIR)$(DATA_ROOT_DIR_PURPLE)/pixmaps/pidgin/protocols/48/telegram.png
+
+ .PHONY: local_install
+ local_install:
diff --git a/net-im/telegram-purple/pkg-descr b/net-im/telegram-purple/pkg-descr
new file mode 100644
index 000000000000..32a4c1d648d4
--- /dev/null
+++ b/net-im/telegram-purple/pkg-descr
@@ -0,0 +1,4 @@
+Telegram-purple is a Libpurple plugin that adds support for the
+Telegram messenger.
+
+WWW: https://github.com/majn/telegram-purple
diff --git a/net-im/telegram-purple/pkg-plist b/net-im/telegram-purple/pkg-plist
new file mode 100644
index 000000000000..4cfdded36610
--- /dev/null
+++ b/net-im/telegram-purple/pkg-plist
@@ -0,0 +1,5 @@
+%%ETCDIR%%/server.pub
+lib/purple-2/telegram-purple.so
+share/pixmaps/pidgin/protocols/16/telegram.png
+share/pixmaps/pidgin/protocols/22/telegram.png
+share/pixmaps/pidgin/protocols/48/telegram.png