From owner-dev-commits-ports-main@freebsd.org Tue May 25 08:05:32 2021 Return-Path: Delivered-To: dev-commits-ports-main@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B75D5647687; Tue, 25 May 2021 08:05:32 +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 4Fq68D4rNpz4pVW; Tue, 25 May 2021 08:05:32 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 846FC19D71; Tue, 25 May 2021 08:05:32 +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 14P85WmB026274; Tue, 25 May 2021 08:05:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 14P85WJS026273; Tue, 25 May 2021 08:05:32 GMT (envelope-from git) Date: Tue, 25 May 2021 08:05:32 GMT Message-Id: <202105250805.14P85WJS026273@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: b034a2e69c97 - main - x11/nfy: + A daemonless notification program for X. 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: b034a2e69c9747512b6f28bd3d852a1fd71c5703 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-main@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commits to the main branch of the FreeBSD ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 May 2021 08:05:32 -0000 The branch main has been updated by arrowd: URL: https://cgit.FreeBSD.org/ports/commit/?id=b034a2e69c9747512b6f28bd3d852a1fd71c5703 commit b034a2e69c9747512b6f28bd3d852a1fd71c5703 Author: Christos Margiolis AuthorDate: 2021-05-24 19:21:29 +0000 Commit: Gleb Popov CommitDate: 2021-05-25 08:04:50 +0000 x11/nfy: + A daemonless notification program for X. PR: 256126 --- x11/nfy/Makefile | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ x11/nfy/distinfo | 3 +++ x11/nfy/pkg-descr | 4 ++++ 3 files changed, 59 insertions(+) diff --git a/x11/nfy/Makefile b/x11/nfy/Makefile new file mode 100644 index 000000000000..bf3fd1f3bda2 --- /dev/null +++ b/x11/nfy/Makefile @@ -0,0 +1,52 @@ +PORTNAME= nfy +DISTVERSION= 0.1 +CATEGORIES= x11 +MASTER_SITES= https://ftp.christosmarg.xyz/${PORTNAME}/ + +MAINTAINER= christos@christosmarg.xyz +COMMENT= Minimal and daemonless notification program for X + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig +#TEST_DEPENDS= ${LOCALBASE}/libexec/atf-check:devel/kyua + +USES= xorg +USE_XORG= x11 xft xrandr + +MAKE_ARGS= CC="${CC}" \ + FREETYPEINC="${LOCALBASE}/include/freetype2" \ + PREFIX="${PREFIX}" \ + VERSION="${PORTVERSION}" \ + X11INC="${LOCALBASE}/include" \ + X11LIB="${LOCALBASE}/lib" + +PLIST_FILES= bin/nfy \ + share/man/man1/nfy.1.gz + +pre-everything: + @${ECHO_MSG} "Build nfy with your own config.h using the NFY_CONF option:" + @${ECHO_MSG} "make NFY_CONF=/path/to/nfy/config.h install clean" + +.if exists(${NFY_CONF}) +post-extract: + @${ECHO_MSG} "Creating symlink: config.h -> ${NFY_CONF}" + ${LN} -fs "${NFY_CONF}" ${WRKSRC}/config.h +.endif + +post-configure: + @${REINPLACE_CMD} -E \ + -e "s|(CFLAGS[[:space:]]*)= |\1+= |" \ + -e "s|(CPPFLAGS[[:space:]]*)= |\1+= |" \ + -e "s|(LDFLAGS[[:space:]]*)= |\1+= |" \ + ${WRKSRC}/config.mk + +post-install: + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/nfy + +do-test: + ${LOCALBASE}/libexec/atf-check -s exit:1 -e match:"nfy-${PORTVERSION}" \ + ${STAGEDIR}${PREFIX}/bin/nfy -v + +.include diff --git a/x11/nfy/distinfo b/x11/nfy/distinfo new file mode 100644 index 000000000000..bcf28975ebe7 --- /dev/null +++ b/x11/nfy/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1621877677 +SHA256 (nfy-0.1.tar.gz) = 84c264c039d450ad6759a7d23e0e06d1cd36293a74e9de8da99125631a18607e +SIZE (nfy-0.1.tar.gz) = 4479 diff --git a/x11/nfy/pkg-descr b/x11/nfy/pkg-descr new file mode 100644 index 000000000000..4df6db58b025 --- /dev/null +++ b/x11/nfy/pkg-descr @@ -0,0 +1,4 @@ +nfy is a minimal and daemonless notification program for X. Configuration +is done by editing a config.h file. + +WWW: https://git.christosmarg.xyz/nfy/files.html