summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorNicola Vitale <nivit@FreeBSD.org>2016-05-05 10:19:30 +0000
committerNicola Vitale <nivit@FreeBSD.org>2016-05-05 10:19:30 +0000
commit7edd868151cb9b6d4ab438ec5de967ab13f81da5 (patch)
tree774ca5beac6599ca83dae8606983df736e9dc763 /x11
parentFix build in the presence of system-wide installed ffmpeg (diff)
AltYo - Drop-down terminal emulator, written in Vala, depends only
on libvte and gtk3. WWW: https://github.com/linvinus/AltYo
Notes
Notes: svn path=/head/; revision=414638
Diffstat (limited to 'x11')
-rw-r--r--x11/Makefile1
-rw-r--r--x11/altyo/Makefile39
-rw-r--r--x11/altyo/distinfo2
-rw-r--r--x11/altyo/files/patch-Makefile56
-rw-r--r--x11/altyo/pkg-descr4
-rw-r--r--x11/altyo/pkg-plist6
6 files changed, 108 insertions, 0 deletions
diff --git a/x11/Makefile b/x11/Makefile
index 5fcca2680223..b8f8093aad40 100644
--- a/x11/Makefile
+++ b/x11/Makefile
@@ -7,6 +7,7 @@
SUBDIR += 9box
SUBDIR += 9menu
SUBDIR += alltray
+ SUBDIR += altyo
SUBDIR += antimicro
SUBDIR += appres
SUBDIR += apwal
diff --git a/x11/altyo/Makefile b/x11/altyo/Makefile
new file mode 100644
index 000000000000..a290d8953e1f
--- /dev/null
+++ b/x11/altyo/Makefile
@@ -0,0 +1,39 @@
+# Created by: Nicola Stanislao Vitale,,+393928766927 <root@www.nivit.eu>
+# $FreeBSD$
+
+PORTNAME= altyo
+#PORTVERSION=
+DISTVERSION= 0.4_rc19
+CATEGORIES= x11
+DISTNAME= ${DISTVERSION}-${GH_ACCOUNT}1
+
+MAINTAINER= nivit@FreeBSD.org
+COMMENT= Drop-down terminal emulator, written in Vala
+
+LICENSE= GPLv3
+
+BUILD_DEPENDS= git:devel/git \
+ valac:lang/vala
+
+ALL_TARGET= default
+
+GH_ACCOUNT= linvinus
+GH_PROJECT= AltYo
+GH_TAGNAME= debian/${DISTVERSION}-${GH_ACCOUNT}1
+
+INSTALLS_ICONS= yes
+
+OPTIONS_DEFINE= NLS
+OPTIONS_SUB= yes
+
+NLS_MAKE_ENV= NLSUPPORT=yes
+NLS_USES= gettext-runtime:run gettext-tools:build
+
+USES= gmake pkgconfig
+USE_GITHUB= yes
+USE_GNOME= gtk30 vte3
+
+post-install:
+ -@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+
+.include <bsd.port.mk>
diff --git a/x11/altyo/distinfo b/x11/altyo/distinfo
new file mode 100644
index 000000000000..2a7f5a680fa5
--- /dev/null
+++ b/x11/altyo/distinfo
@@ -0,0 +1,2 @@
+SHA256 (0.4_rc19-linvinus1_GH0.tar.gz) = e0ce5a53d25a0378af279cbd472722cf02605f8fffe137fa2a4272f91d68af97
+SIZE (0.4_rc19-linvinus1_GH0.tar.gz) = 142389
diff --git a/x11/altyo/files/patch-Makefile b/x11/altyo/files/patch-Makefile
new file mode 100644
index 000000000000..98398119439c
--- /dev/null
+++ b/x11/altyo/files/patch-Makefile
@@ -0,0 +1,56 @@
+--- Makefile.orig 2016-04-19 20:55:59 UTC
++++ Makefile
+@@ -1,25 +1,7 @@
+ PRG_NAME=altyo
+
+-# guess Linux distro
+-LINUX.DISTRIB.FILE=$(shell ls /etc/lsb-release 2>/dev/null)
+-ifeq ($(LINUX.DISTRIB.FILE),)
+-LINUX.DISTRIB.FILE=$(shell ls /etc/debian_version 2>/dev/null)
+-endif
+-
+-ifeq ($(LINUX.DISTRIB.FILE),/etc/lsb-release)
+-LINUX.DISTRIB.ID=$(shell grep DISTRIB_ID /etc/lsb-release | sed 's/DISTRIB_ID=//')
+-endif
+-
+-ifeq ($(LINUX.DISTRIB.FILE),/etc/debian_version)
+-LINUX.DISTRIB.ID=debian
+-endif
+-
+-ifeq ($(LINUX.DISTRIB.ID),Ubuntu)
+-LINUX.DISTRIB.ID=ubuntu
+-endif
+-
+-CHANGELOG_TAG=${shell grep -m 1 "^altyo" ./debian/changelog | sed 's/.*(//' | sed 's/).*$$//'| sed 's/~/_/' | sed 's/:/%/'}
+-GIT_HASH=${shell which git >/dev/null && git log -1 --pretty=format:%h}
++GIT_HASH=
++CHANGELOG_TAG=
+ VALA_FLAGS ?=
+
+ #use tmpfs for ssd hard drive
+@@ -95,19 +77,25 @@ install: gen_mo
+ test -z "$(DESTDIR)$(PREFIX)/share/applications" || mkdir -p "$(DESTDIR)$(PREFIX)/share/applications";
+ cp -a ./data/altyo.desktop $(DESTDIR)$(PREFIX)/share/applications
+ cp -a ./data/altyo_standalone.desktop $(DESTDIR)$(PREFIX)/share/applications
++ifeq ($(NLSUPPORT),yes)
+ test -z "$(DESTDIR)$(PREFIX)/share/locale/ru/LC_MESSAGES" || mkdir -p "$(DESTDIR)$(PREFIX)/share/locale/ru/LC_MESSAGES";
+ cp -a ./po/ru/LC_MESSAGES/altyo.mo $(DESTDIR)$(PREFIX)/share/locale/ru/LC_MESSAGES
++endif
+ test -z "$(DESTDIR)$(PREFIX)/share/icons/hicolor/48x48/apps" || mkdir -p "$(DESTDIR)$(PREFIX)/share/icons/hicolor/48x48/apps";
+ cp -a ./data/altyo.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/48x48/apps
+ test -z "$(DESTDIR)$(PREFIX)/share/icons/hicolor/scalable/apps" || mkdir -p "$(DESTDIR)$(PREFIX)/share/icons/hicolor/scalable/apps";
+ cp -a ./data/altyo.svg $(DESTDIR)$(PREFIX)/share/icons/hicolor/scalable/apps
+
+ gen_po:
++ifeq ($(NLSUPPORT),yes)
+ xgettext -o ./po/altyo.po --from-code=UTF-8 -language=C --keyword=_ --keyword=N_ $(VALA_FILES) $(GLADE_FILES)
+ msgmerge -s -U ./po/ru/LC_MESSAGES/$(PRG_NAME).po ./po/$(PRG_NAME).po
++endif
+
+ gen_mo:
++ifeq ($(NLSUPPORT),yes)
+ msgfmt -c -v -o ./po/ru/LC_MESSAGES/$(PRG_NAME).mo ./po/ru/LC_MESSAGES/$(PRG_NAME).po
++endif
+
+ source-package:
+ rm ./altyo || true
diff --git a/x11/altyo/pkg-descr b/x11/altyo/pkg-descr
new file mode 100644
index 000000000000..2cefa66043f0
--- /dev/null
+++ b/x11/altyo/pkg-descr
@@ -0,0 +1,4 @@
+AltYo - Drop-down terminal emulator, written in Vala, depends only
+on libvte and gtk3.
+
+WWW: https://github.com/linvinus/AltYo
diff --git a/x11/altyo/pkg-plist b/x11/altyo/pkg-plist
new file mode 100644
index 000000000000..2b132d4c41d1
--- /dev/null
+++ b/x11/altyo/pkg-plist
@@ -0,0 +1,6 @@
+bin/altyo
+share/applications/altyo.desktop
+share/applications/altyo_standalone.desktop
+share/icons/hicolor/48x48/apps/altyo.png
+share/icons/hicolor/scalable/apps/altyo.svg
+%%NLS%%share/locale/ru/LC_MESSAGES/altyo.mo