mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-24 09:25:01 +00:00
44eaadcb75
Where possible, correct a few instances where PORTDOCS was being used to flag stuff in EXAMPLESDIR. For some ports, mostly those owned by ruby@, PORTDOCS is applied to pretty much everything whether it's documentation or example.
37 lines
816 B
Makefile
37 lines
816 B
Makefile
# Created by: Stanislav Sedov <stas@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= lha
|
|
PORTVERSION= 0.8.1
|
|
PORTREVISION= 1
|
|
CATEGORIES= archivers ruby
|
|
MASTER_SITES= http://arton.no-ip.info/data/lhalib/
|
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
|
DISTNAME= lhalib-${PORTVERSION}
|
|
DIST_SUBDIR= ruby
|
|
|
|
MAINTAINER= ruby@FreeBSD.org
|
|
COMMENT= Ruby extension to unpack LHA-compressed files
|
|
|
|
USES= zip
|
|
USE_RUBY= yes
|
|
USE_RUBY_EXTCONF= yes
|
|
RUBY_EXTCONF= ext/extconf.rb
|
|
|
|
CONFIGURE_ARGS= --rubyprog=${RUBY}
|
|
|
|
EXAMPLES= test/test.rb
|
|
RUBY_SHEBANG_FILES= ${EXAMPLES}
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
post-install:
|
|
@${MKDIR} ${STAGEDIR}${RUBY_MODEXAMPLESDIR}
|
|
${INSTALL_SCRIPT} ${EXAMPLES:S,^,${WRKSRC}/,} ${STAGEDIR}${RUBY_MODEXAMPLESDIR}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
.if ${RUBY_VER} == 2.0
|
|
BROKEN= Does not build with Ruby 2.0
|
|
.endif
|
|
.include <bsd.port.post.mk>
|