summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorpin <pin@pkgsrc.org>2021-02-25 15:27:19 +0000
committerpin <pin@pkgsrc.org>2021-02-25 15:27:19 +0000
commit8efa8cde147a24fa96b3dad240212bb0f9fbc2f1 (patch)
tree267088882afb946dd3225e66a13aee82a3a80887 /x11
parent502e576493dc578e8c92e12d89afb705eb8bc505 (diff)
downloadpkgsrc-8efa8cde147a24fa96b3dad240212bb0f9fbc2f1.tar.gz
x11/xst: import package
xst is a st fork with some patches applied and other goodies.
Diffstat (limited to 'x11')
-rw-r--r--x11/xst/DESCR1
-rw-r--r--x11/xst/Makefile40
-rw-r--r--x11/xst/PLIST3
-rw-r--r--x11/xst/distinfo7
-rw-r--r--x11/xst/patches/patch-Makefile25
5 files changed, 76 insertions, 0 deletions
diff --git a/x11/xst/DESCR b/x11/xst/DESCR
new file mode 100644
index 00000000000..17455fb5c84
--- /dev/null
+++ b/x11/xst/DESCR
@@ -0,0 +1 @@
+xst is a st fork with some patches applied and other goodies.
diff --git a/x11/xst/Makefile b/x11/xst/Makefile
new file mode 100644
index 00000000000..512f3ee71ab
--- /dev/null
+++ b/x11/xst/Makefile
@@ -0,0 +1,40 @@
+# $NetBSD: Makefile,v 1.1 2021/02/25 15:27:19 pin Exp $
+
+DISTNAME= xst-0.8.4.1
+CATEGORIES= x11
+MASTER_SITES= ${MASTER_SITE_GITHUB:=gnotclub/}
+GITHUB_TAG= v${PKGVERSION_NOREV}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://github.com/gnotclub/xst/
+COMMENT= st fork that uses Xresources and some patches
+LICENSE= mit
+
+MAKE_JOBS_SAFE= no
+
+CONFLICTS= st-term-[0-9]*
+
+USE_TOOLS+= pkg-config
+USE_LANGUAGES= c99
+
+SUBST_CLASSES+= configdefh configmk
+SUBST_STAGE.configdefh= pre-configure
+SUBST_STAGE.configmk= pre-configure
+SUBST_MESSAGE.configdefh= Change default font and termname
+SUBST_FILES.configdefh= config.def.h
+SUBST_MESSAGE.configmk= Fixing paths
+SUBST_FILES.configmk= config.mk
+SUBST_SED.configdefh+= -e '/font/ s,".*","monospace:size=10",'
+SUBST_SED.configdefh+= -e 's,xst-256color,xterm,g'
+SUBST_SED.configmk+= -e 's,/usr/local,${PREFIX},g'
+SUBST_SED.configmk+= -e 's,share/man,${PKGMANDIR},g'
+SUBST_SED.configmk+= -e 's,/usr/X11R6,${X11BASE},g'
+SUBST_SED.configmk+= -e 's/cc/${CC:Q}/'
+
+INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
+
+.include "../../fonts/fontconfig/buildlink3.mk"
+.include "../../graphics/freetype2/buildlink3.mk"
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../x11/libXft/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/x11/xst/PLIST b/x11/xst/PLIST
new file mode 100644
index 00000000000..0f29f85ee07
--- /dev/null
+++ b/x11/xst/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2021/02/25 15:27:19 pin Exp $
+bin/xst
+man/man1/xst.1
diff --git a/x11/xst/distinfo b/x11/xst/distinfo
new file mode 100644
index 00000000000..2dcc651ac2b
--- /dev/null
+++ b/x11/xst/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2021/02/25 15:27:19 pin Exp $
+
+SHA1 (xst-0.8.4.1.tar.gz) = 0ae5cf29eaae1aebb87885d0be16e8f1af6cbef0
+RMD160 (xst-0.8.4.1.tar.gz) = 8a5d6b5dd7fb08bc44713515c80811c02c6e7d2a
+SHA512 (xst-0.8.4.1.tar.gz) = 00478f16caf599ae4a0c1cdfc7e5e148eb864ae5e28c416d5872d7e1d20f56e01b58475653f742418168edfc64eba781926b51adc815ef3a63f28da85025c0ac
+Size (xst-0.8.4.1.tar.gz) = 58339 bytes
+SHA1 (patch-Makefile) = 12d096790c7c808114297d44404932f7d00156f8
diff --git a/x11/xst/patches/patch-Makefile b/x11/xst/patches/patch-Makefile
new file mode 100644
index 00000000000..9bfa74531eb
--- /dev/null
+++ b/x11/xst/patches/patch-Makefile
@@ -0,0 +1,25 @@
+$NetBSD: patch-Makefile,v 1.1 2021/02/25 15:27:19 pin Exp $
+
+Do not install terminfo
+
+--- Makefile.orig 2020-11-19 03:05:11.000000000 +0000
++++ Makefile
+@@ -48,18 +48,9 @@ install: st
+ mkdir -p $(DESTDIR)$(MANPREFIX)/man1
+ sed "s/VERSION/$(VERSION)/g" < st.1 > $(DESTDIR)$(MANPREFIX)/man1/xst.1
+ chmod 644 $(DESTDIR)$(MANPREFIX)/man1/xst.1
+- mkdir -p $(DESTDIR)$(PREFIX)/share/terminfo
+- env TERMINFO=$(DESTDIR)$(PREFIX)/share/terminfo tic -sx st.info
+
+ uninstall:
+ rm -f $(DESTDIR)$(PREFIX)/bin/xst
+ rm -f $(DESTDIR)$(MANPREFIX)/man1/xst.1
+- rm -f $(DESTDIR)$(PREFIX)/share/terminfo/x/xst
+- rm -f $(DESTDIR)$(PREFIX)/share/terminfo/x/xst-256color
+- rm -f $(DESTDIR)$(PREFIX)/share/terminfo/x/xst-bs
+- rm -f $(DESTDIR)$(PREFIX)/share/terminfo/x/xst-bs-256color
+- rm -f $(DESTDIR)$(PREFIX)/share/terminfo/x/xst-meta
+- rm -f $(DESTDIR)$(PREFIX)/share/terminfo/x/xst-meta-256color
+- rm -f $(DESTDIR)$(PREFIX)/share/terminfo/x/xst-mono
+
+ .PHONY: all options clean dist install uninstall