mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-21 07:52:21 -04:00
x11-terms/dmd5620: new package
Package-Manager: Portage-3.0.22, Repoman-3.0.3 Signed-off-by: Vladislav Dudar <seal331gentoo@gmail.com>
This commit is contained in:
parent
e78a00f599
commit
adb7fea306
1
x11-terms/dmd5620/Manifest
Normal file
1
x11-terms/dmd5620/Manifest
Normal file
@ -0,0 +1 @@
|
|||||||
|
DIST dmd5620-1.2.0.tar.gz 2560536 BLAKE2B e7ccd740cd727c5a21ddef19671e08675eaf66228b4917a56b47923bf3c2c0a23373391db59f83fb30529a616db2df0107732e5106600838a6ba68fb546855a3 SHA512 674c990d08a56458b35cba76d2733ff0b75bed83589f20166ca017af37616072caf11d7b9c8b621945affbc42edfc758bc1e13fa2d0ccf1fbc76a43f6ece9298
|
61
x11-terms/dmd5620/dmd5620-1.2.0.ebuild
Normal file
61
x11-terms/dmd5620/dmd5620-1.2.0.ebuild
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit toolchain-funcs xdg-utils
|
||||||
|
|
||||||
|
DESCRIPTION="GTK+ 3.0 implementation of an AT&T / Teletype DMD 5620 emulator."
|
||||||
|
HOMEPAGE="https://github.com/sethm/dmd_gtk"
|
||||||
|
SRC_URI="https://github.com/sethm/dmd_gtk/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
S="${WORKDIR}/dmd_gtk-${PV}"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
|
||||||
|
RESTRICT="test mirror"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
net-libs/libtelnet
|
||||||
|
dev-libs/dmd_core
|
||||||
|
x11-libs/gtk+:3
|
||||||
|
x11-libs/gdk-pixbuf
|
||||||
|
x11-libs/cairo
|
||||||
|
dev-libs/glib:2
|
||||||
|
"
|
||||||
|
DEPEND="${RDEPEND}"
|
||||||
|
|
||||||
|
BDEPEND="
|
||||||
|
${RDEPEND}
|
||||||
|
virtual/pkgconfig
|
||||||
|
"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
# remove bundled libraries
|
||||||
|
rm "${S}"/src/libtelnet.c "${S}"/src/libtelnet.h "${S}"/lib/libdmd_core.a
|
||||||
|
rmdir "${S}"/lib
|
||||||
|
# apply patches
|
||||||
|
eapply "${FILESDIR}/${PN}-1.2.0-systemlibs-nostrip.patch"
|
||||||
|
eapply_user
|
||||||
|
# use system pkgconfig
|
||||||
|
sed -i -e "s:pkgconfig:$(tc-getPKG_CONFIG):" "${S}"/Makefile || die "sed failed"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
emake CC="$(tc-getCC)" LD="$(tc-getLD)"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
emake PREFIX=/usr DESTDIR="${D}" install
|
||||||
|
dodoc "${S}/LICENSE.md"
|
||||||
|
dodoc "${S}/README.md"
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
xdg_icon_cache_update
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
xdg_icon_cache_update
|
||||||
|
}
|
@ -0,0 +1,34 @@
|
|||||||
|
Index: dmd_gtk-1.2.0/Makefile
|
||||||
|
===================================================================
|
||||||
|
--- dmd_gtk-1.2.0.orig/Makefile
|
||||||
|
+++ dmd_gtk-1.2.0/Makefile
|
||||||
|
@@ -1,13 +1,16 @@
|
||||||
|
SRCDIR = src
|
||||||
|
LIBDIR = lib
|
||||||
|
CC = gcc
|
||||||
|
-CFLAGS = $(shell pkg-config --cflags gtk+-3.0) -Wall -std=gnu99
|
||||||
|
+CFLAGS = $(shell printenv CFLAGS)
|
||||||
|
+CFLAGS += $(shell pkg-config --cflags gtk+-3.0) $(shell pkg-config --cflags libtelnet) -Wall -std=gnu99
|
||||||
|
GTKLIBS = $(shell pkg-config --libs gtk+-3.0)
|
||||||
|
+TELNETLIBS = $(shell pkg-config --libs libtelnet)
|
||||||
|
EXE = dmd5620
|
||||||
|
-CSRC = $(wildcard src/*.c)
|
||||||
|
+CSRC = src/dmd_5620.c
|
||||||
|
OBJ = $(CSRC:.c=.o)
|
||||||
|
-LDFLAGS = $(GTKLIBS) -lm -lpthread -lc -ldl
|
||||||
|
-CORELIB = $(LIBDIR)/libdmd_core.a
|
||||||
|
+LDFLAGS = $(shell printenv LDFLAGS)
|
||||||
|
+LDFLAGS += $(GTKLIBS) $(TELNETLIBS) -lm -lpthread -lc -ldl
|
||||||
|
+CORELIB = $(shell pkg-config --libs dmd_core)
|
||||||
|
|
||||||
|
ifeq ($(PREFIX),)
|
||||||
|
PREFIX := /usr/local
|
||||||
|
@@ -16,7 +19,7 @@ endif
|
||||||
|
ifdef DEBUG
|
||||||
|
CFLAGS+ = -g -O0
|
||||||
|
else
|
||||||
|
-CFLAGS += -O3 -Os -s
|
||||||
|
+CFLAGS += -O3 -Os
|
||||||
|
endif
|
||||||
|
|
||||||
|
.PHONY: all clean
|
9
x11-terms/dmd5620/metadata.xml
Normal file
9
x11-terms/dmd5620/metadata.xml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<maintainer type="person">
|
||||||
|
<email>seal331gentoo@gmail.com</email>
|
||||||
|
<name>Vladislav Dudar</name>
|
||||||
|
<description>Primary maintainer</description>
|
||||||
|
</maintainer>
|
||||||
|
</pkgmetadata>
|
Loading…
x
Reference in New Issue
Block a user