From nobody Sat Mar 4 12:30:59 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PTPMR53Plz3vyS6; Sat, 4 Mar 2023 12:30:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PTPMR4bPsz4Hdv; Sat, 4 Mar 2023 12:30:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677933059; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=YB9ZDdVS7jXYwTUuGJk7SBMGlqaci64RpSNBfZeuQEw=; b=aSA1q8jozXDnJ1L0HKAv9dnbvUIxA9RRSGW3ky6e48wgN4JPDJG7DeDsR0ZuruIaTiaviO iE9SIkbsUTAf9IM1JLLNh7Jeavjbe3Sjib+md+StkwKlrzLNEP/Gm5MZ/iNiuJeDaQdGi0 ua3xS+cddGaxYSfS6GCiY4ctLINsu7SHdwXgGOYOChxsQJPsYPRTodNEoJUeJ8NCPmAjnp fm7QaYtHNr7+lLHhwQyMtAfiTtTFHmZHHO4q6epes+QuqJW8VEaoANoDuVyYOviKDg/29T QeRXUj0xklKzVpfCIPBaWxTalTQT2nnhtaORuIgYNXk1O9iJsZ+kxoZ4AK25gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677933059; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=YB9ZDdVS7jXYwTUuGJk7SBMGlqaci64RpSNBfZeuQEw=; b=T1yZZyK4O3Gdcd3fokavGoCf1Q0NCXV1cpEVpFoS35RFhL6h7ZvT0cQ3EMX5VNTPYEY4+a J7CU2GyIOqDVifJZrqIkRdpFzy16y1w3JhOSpIzIvORXImiVdi97SViz1CpXJyz4/8IwU5 VYDEl2HMzTH6NL5ofXvLYQhLM+HvuNywgVgsaEbsZXyyD6JESWhHBCEK5PEBr8ysXE031W Q4ntxPv3kgjSwWGjdIlta5eqpQs/wUlLXkvyhDw/c0I5XhC/EpQA4TrkbtT45bj1CZD/R/ ZqjZi/FUcGZ08D7qDOAkUCYytKqPank9FMRa48HNOEQbDnVQpm+4RuT/gmkc7g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1677933059; a=rsa-sha256; cv=none; b=TqZD+nVfjQAv4pHSghGqkp/hdGGOe1bG29EsP4xL3JQ7B3DaY8sMZvGm0y6ABC7GsF7sNx qjMSALFOiDQfab9IjNZfH0cOhpod/bOlMc9Ev8X8aQA9KR3Gnd6WodKTHXhxx0m5HMfITP zR3j5JIajq4tAILlSsBLyU1UbI10f+ZEB4qLeCWyO1/k6ruKA8Ci1Ljps6FcOdFHLqNLnC W/sGMCme6qlCdSDxT0SxNAgS8rUqhFCfmg2LGNyVn1HCYCSxFO0999wlkCeTDA6posqKeW tu3k9Sc0l4KQ2EveAY/JfeaKdnXDBf2XjT7MBN+ihRH6rkk8tYaO6t/JdDLbwQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PTPMR3fLVzgD8; Sat, 4 Mar 2023 12:30:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 324CUxqf001325; Sat, 4 Mar 2023 12:30:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 324CUxtC001324; Sat, 4 Mar 2023 12:30:59 GMT (envelope-from git) Date: Sat, 4 Mar 2023 12:30:59 GMT Message-Id: <202303041230.324CUxtC001324@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Gleb Popov Subject: git: 86b0628113b8 - main - editors/sam: + Unix port of the sam text editor from Bell Labs. List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: arrowd X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 86b0628113b8be216de61b5b9c45c5ecaab03301 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by arrowd: URL: https://cgit.FreeBSD.org/ports/commit/?id=86b0628113b8be216de61b5b9c45c5ecaab03301 commit 86b0628113b8be216de61b5b9c45c5ecaab03301 Author: Florian Limberger AuthorDate: 2023-03-04 12:12:01 +0000 Commit: Gleb Popov CommitDate: 2023-03-04 12:30:24 +0000 editors/sam: + Unix port of the sam text editor from Bell Labs. Reviewed by: arrowd, diizzy Differential Revision: https://reviews.freebsd.org/D38785 --- editors/Makefile | 1 + editors/sam/Makefile | 43 +++++++++++++++++++++++++++++++++++++++++++ editors/sam/distinfo | 3 +++ editors/sam/pkg-descr | 5 +++++ editors/sam/pkg-plist | 10 ++++++++++ 5 files changed, 62 insertions(+) diff --git a/editors/Makefile b/editors/Makefile index e2dd1cf61386..3dffef28cbaa 100644 --- a/editors/Makefile +++ b/editors/Makefile @@ -243,6 +243,7 @@ SUBDIR += rehex SUBDIR += retext SUBDIR += rubygem-neovim + SUBDIR += sam SUBDIR += scite SUBDIR += se SUBDIR += semi diff --git a/editors/sam/Makefile b/editors/sam/Makefile new file mode 100644 index 000000000000..b64a2901d2d7 --- /dev/null +++ b/editors/sam/Makefile @@ -0,0 +1,43 @@ +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 + +LIB_DEPENDS= libfreetype.so:print/freetype2 + +USES= localbase:ldflags 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+= -I${LOCALBASE}/include/freetype2 + +do-configure: + ${SED} -e 's/LDFLAGS=/LDFLAGS?=/' -e 's/CC=/CC?=/' \ + ${WRKSRC}/config.mk.def >${WRKSRC}/config.mk + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/sam/sam ${STAGEDIR}${PREFIX}/bin + ${RLN} ${STAGEDIR}${PREFIX}/bin/sam ${STAGEDIR}${PREFIX}/bin/B + ${INSTALL_PROGRAM} ${WRKSRC}/samterm/samterm ${STAGEDIR}${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/ssam/ssam.sh ${STAGEDIR}${PREFIX}/bin/ssam + ${INSTALL_MAN} ${WRKSRC}/doc/sam.1 ${STAGEDIR}${PREFIX}/share/man/man1 + ${RLN} ${STAGEDIR}${PREFIX}/share/man/man1/sam.1 ${STAGEDIR}${PREFIX}/share/man/man1/B.1 + ${RLN} ${STAGEDIR}${PREFIX}/share/man/man1/sam.1 ${STAGEDIR}${PREFIX}/share/man/man1/samterm.1 + ${RLN} ${STAGEDIR}${PREFIX}/share/man/man1/sam.1 ${STAGEDIR}${PREFIX}/share/man/man1/rsam.1 + ${RLN} ${STAGEDIR}${PREFIX}/share/man/man1/sam.1 ${STAGEDIR}${PREFIX}/share/man/man1/sam.save.1 + ${INSTALL_MAN} ${WRKSRC}/doc/samrc.5 ${STAGEDIR}${PREFIX}/share/man/man5 + +.include diff --git a/editors/sam/distinfo b/editors/sam/distinfo new file mode 100644 index 000000000000..8190cbc4056c --- /dev/null +++ b/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 diff --git a/editors/sam/pkg-descr b/editors/sam/pkg-descr new file mode 100644 index 000000000000..2e81a02150ea --- /dev/null +++ b/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. diff --git a/editors/sam/pkg-plist b/editors/sam/pkg-plist new file mode 100644 index 000000000000..cec5bc79142c --- /dev/null +++ b/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