diff options
author | nivit <nivit@FreeBSD.org> | 2016-05-05 18:19:30 +0800 |
---|---|---|
committer | nivit <nivit@FreeBSD.org> | 2016-05-05 18:19:30 +0800 |
commit | e26b0a05774d1664bff512162d362eb8e70839f5 (patch) | |
tree | 774ca5beac6599ca83dae8606983df736e9dc763 /x11/altyo | |
parent | 1a0bcbd698a4a57cdd994395e47a44fb263ee361 (diff) | |
download | freebsd-ports-gnome-e26b0a05774d1664bff512162d362eb8e70839f5.tar.gz freebsd-ports-gnome-e26b0a05774d1664bff512162d362eb8e70839f5.tar.zst freebsd-ports-gnome-e26b0a05774d1664bff512162d362eb8e70839f5.zip |
AltYo - Drop-down terminal emulator, written in Vala, depends only
on libvte and gtk3.
WWW: https://github.com/linvinus/AltYo
Diffstat (limited to 'x11/altyo')
-rw-r--r-- | x11/altyo/Makefile | 39 | ||||
-rw-r--r-- | x11/altyo/distinfo | 2 | ||||
-rw-r--r-- | x11/altyo/files/patch-Makefile | 56 | ||||
-rw-r--r-- | x11/altyo/pkg-descr | 4 | ||||
-rw-r--r-- | x11/altyo/pkg-plist | 6 |
5 files changed, 107 insertions, 0 deletions
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 |