Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
x11/keybinder-gtk3: Add DOCS/EXAMPLES options
- Make installation of docs and examples optional - Correct DISTVERSIONPREFIX - Needs USES=autoreconf to suppress docs install - Reorder some Makefile vars PR: 254734 Submitted by: John Hein <jcfyecrayz@liamekaens.com>
- Loading branch information
Showing
2 changed files
with
46 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,38 @@ | ||
PORTNAME= keybinder | ||
PORTVERSION= 0.3.2 | ||
DISTVERSIONPREFIX= keybinder-3.0-v | ||
DISTVERSIONPREFIX= 3.0- | ||
PORTREVISION= 1 | ||
CATEGORIES= x11 | ||
MASTER_SITES= https://github.com/kupferlauncher/${PORTNAME}/releases/download/${DISTVERSIONPREFIX}${DISTVERSION}/ | ||
MASTER_SITES= https://github.com/kupferlauncher/${PORTNAME}/releases/download/${PORTNAME}-${DISTVERSIONPREFIX}v${DISTVERSION}/ | ||
PKGNAMESUFFIX= -gtk3 | ||
DISTNAME= ${DISTVERSIONPREFIX:S/-v//}-${DISTVERSION} | ||
|
||
MAINTAINER= ports@FreeBSD.org | ||
COMMENT= Library for registering keyboard shortcuts | ||
|
||
LICENSE= MIT | ||
LICENSE_FILE= ${WRKSRC}/COPYING | ||
|
||
USES= gettext-runtime gmake gnome libtool pathfix pkgconfig xorg | ||
USES= autoreconf gettext-runtime gmake gnome libtool pathfix \ | ||
pkgconfig xorg | ||
USE_GNOME= gtk30 introspection:build cairo gdkpixbuf2 | ||
USE_LDCONFIG= yes | ||
USE_XORG= x11 xext xrender | ||
|
||
GNU_CONFIGURE= yes | ||
|
||
INSTALL_TARGET= install-strip | ||
USE_LDCONFIG= yes | ||
|
||
PLIST_SUB= VERSION="3.0" | ||
VERSION= "3.0" | ||
PLIST_SUB= VERSION=${VERSION} | ||
|
||
OPTIONS_DEFINE= EXAMPLES DOCS | ||
|
||
post-patch-DOCS-off: | ||
@${REINPLACE_CMD} -E '/GTK_DOC_CHECK|docs/d' ${WRKSRC}/configure.ac | ||
@${REINPLACE_CMD} -e '/^SUBDIRS/s, docs,,' ${WRKSRC}/Makefile.am | ||
|
||
post-install-EXAMPLES-on: | ||
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}-${VERSION} | ||
cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}-${VERSION} | ||
|
||
.include <bsd.port.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters