Page MenuHomeFreeBSD

D38785.id117930.diff
No OneTemporary

D38785.id117930.diff

Index: editors/Makefile
===================================================================
--- editors/Makefile
+++ editors/Makefile
@@ -243,6 +243,7 @@
SUBDIR += rehex
SUBDIR += retext
SUBDIR += rubygem-neovim
+ SUBDIR += sam
SUBDIR += scite
SUBDIR += se
SUBDIR += semi
Index: editors/sam/Makefile
===================================================================
--- /dev/null
+++ editors/sam/Makefile
@@ -0,0 +1,36 @@
+PORTNAME= sam
+DISTVERSION= g20230103
+CATEGORIES= editors
+
+MAINTAINER= flo@purplekraken.com
+COMMENT= Unix port of the Sam text editor from Plan 9
+WWW= https://github.com/deadpixi/sam
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USES= xorg
+
+USE_GITHUB= yes
+GH_ACCOUNT= deadpixi
+GH_PROJECT= sam
+GH_TAGNAME= 5d8acb3
+
+USE_XORG= x11 xft xi xt
+
+# Some random build system fixes
+MAKE_JOBS_UNSAFE=yes
+CFLAGS+= -isystem ${LOCALBASE}/include
+CFLAGS+= -isystem ${LOCALBASE}/include/freetype2
+LDFLAGS+= -L ${LOCALBASE}/lib
+
+do-configure:
+ ${SED} -e 's/LDFLAGS=/LDFLAGS?=/' -e 's/CC=/CC?=/' \
+ <${WRKSRC}/config.mk.def >${WRKSRC}/config.mk
+
+do-install:
+ ${MAKE} DESTDIR=${STAGEDIR}${PREFIX} -C ${WRKSRC} install
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/sam
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/samterm
+
+.include <bsd.port.mk>
Index: editors/sam/distinfo
===================================================================
--- /dev/null
+++ editors/sam/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1672738941
+SHA256 (deadpixi-sam-g20230103-5d8acb3_GH0.tar.gz) = 70781f60d2cf7212b9d563cf22c819e68699d5d536bea66927a33009b556f5d1
+SIZE (deadpixi-sam-g20230103-5d8acb3_GH0.tar.gz) = 312329
Index: editors/sam/files/patch-Makefile
===================================================================
--- /dev/null
+++ editors/sam/files/patch-Makefile
@@ -0,0 +1,10 @@
+--- Makefile.orig 2023-02-25 17:03:16 UTC
++++ Makefile
+@@ -27,7 +27,6 @@ samtermdir:
+ cd samterm; $(MAKE)
+
+ install:
+- @xdg-desktop-menu install --mode $(MODE) deadpixi-sam.desktop || echo "unable to install desktop entry"
+ cd libXg; $(MAKE) install
+ cd libframe; $(MAKE) install
+ cd sam; $(MAKE) install
Index: editors/sam/files/patch-doc_Makefile
===================================================================
--- /dev/null
+++ editors/sam/files/patch-doc_Makefile
@@ -0,0 +1,17 @@
+--- doc/Makefile.orig 2023-02-25 17:44:55 UTC
++++ doc/Makefile
+@@ -7,10 +7,10 @@ all:
+ install: sam.1
+ mkdir -p "$(MANDIR)/man1"
+ cp sam.1 "$(MANDIR)/man1"
+- ln -sf "$(MANDIR)/man1/sam.1" "$(MANDIR)/man1/B.1"
+- ln -sf "$(MANDIR)/man1/sam.1" "$(MANDIR)/man1/samterm.1"
+- ln -sf "$(MANDIR)/man1/sam.1" "$(MANDIR)/man1/rsam.1"
+- ln -sf "$(MANDIR)/man1/sam.1" "$(MANDIR)/man1/sam.save.1"
++ cp "$(MANDIR)/man1/sam.1" "$(MANDIR)/man1/B.1"
++ cp "$(MANDIR)/man1/sam.1" "$(MANDIR)/man1/samterm.1"
++ cp "$(MANDIR)/man1/sam.1" "$(MANDIR)/man1/rsam.1"
++ cp "$(MANDIR)/man1/sam.1" "$(MANDIR)/man1/sam.save.1"
+ mkdir -p "$(MANDIR)/man5"
+ cp samrc.5 "$(MANDIR)/man5"
+
Index: editors/sam/pkg-descr
===================================================================
--- /dev/null
+++ editors/sam/pkg-descr
@@ -0,0 +1,5 @@
+Sam is a text editor originally written for the Blit graphical terminal
+connected to a machine running 9th Edition Research Unix. It contained many
+useful innovations, the most famous of which was its use of structural regular
+expressions. This version of sam is based on that 1990s Unix port, with many
+useful additions and modifications.
Index: editors/sam/pkg-plist
===================================================================
--- /dev/null
+++ editors/sam/pkg-plist
@@ -0,0 +1,10 @@
+bin/B
+bin/sam
+bin/samterm
+bin/ssam
+share/man/man1/B.1.gz
+share/man/man1/rsam.1.gz
+share/man/man1/sam.1.gz
+share/man/man1/sam.save.1.gz
+share/man/man1/samterm.1.gz
+share/man/man5/samrc.5.gz

File Metadata

Mime Type
text/plain
Expires
Thu, Mar 5, 6:45 PM (19 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29276428
Default Alt Text
D38785.id117930.diff (3 KB)

Event Timeline