diff options
author | bapt <bapt@FreeBSD.org> | 2014-04-07 22:14:34 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2014-04-07 22:14:34 +0800 |
commit | 9ab3490e3644d56dd0f1466a20535734077050af (patch) | |
tree | be5dbaae2502799ee217b5663aa3f298cf8b210a /graphics | |
parent | 6e87f56a7e1ec047561c7dcca9da7a2dbe2e5fe1 (diff) | |
download | freebsd-ports-gnome-9ab3490e3644d56dd0f1466a20535734077050af.tar.gz freebsd-ports-gnome-9ab3490e3644d56dd0f1466a20535734077050af.tar.zst freebsd-ports-gnome-9ab3490e3644d56dd0f1466a20535734077050af.zip |
Support stage
Respect EXAMPLES option
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/ruby-imlib2/Makefile | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/graphics/ruby-imlib2/Makefile b/graphics/ruby-imlib2/Makefile index 60c6a382d3b3..907e4335da0e 100644 --- a/graphics/ruby-imlib2/Makefile +++ b/graphics/ruby-imlib2/Makefile @@ -13,6 +13,8 @@ DIST_SUBDIR= ruby MAINTAINER= ruby@FreeBSD.org COMMENT= Imlib2 bindings for Ruby +OPTIONS_DEFINE= DOCS EXAMPLES + USE_RUBY= yes USE_RUBY_EXTCONF= yes USE_EFL= imlib2 @@ -21,26 +23,21 @@ INSTALL_TARGET= site-install PLIST_FILES= %%RUBY_SITEARCHLIBDIR%%/imlib2.so DOCSDIR= ${RUBY_MODDOCDIR} +EXAMPLESDIR= ${RUBY_EXAMPLESDIR} +MAKE_ARGS= INSTALL_PROG="${INSTALL_PROGRAM}" \ + INSTALL_DATA="${INSTALL_DATA}" -.if !defined(NOPORTDOCS) PORTDOCS= * -.endif +PORTEXAMPLES= * -NO_STAGE= yes post-patch: ${REINPLACE_CMD} -E -e 's|RSTRING\(([^)]+)\)->len|RSTRING_LEN(\1)|g' ${WRKSRC}/imlib2.c post-install: -.if !defined(NOPORTDOCS) - ${MKDIR} ${RUBY_MODDOCDIR} - ${MKDIR} ${RUBY_MODEXAMPLESDIR} - @(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${RUBY_MODEXAMPLESDIR}) - @(cd ${WRKSRC} && ${COPYTREE_SHARE} doc ${RUBY_MODDOCDIR}) - @${INSTALL_DATA} ${WRKSRC}/README ${RUBY_MODDOCDIR}/ - @${FIND} ${RUBY_MODEXAMPLESDIR} ! -type d | \ - ${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST} - @${FIND} ${RUBY_MODEXAMPLESDIR} -type d | ${SORT} -r | \ - ${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST} -.endif + @${MKDIR} ${STAGEDIR}${RUBY_MODDOCDIR} + @${MKDIR} ${STAGEDIR}${RUBY_MODEXAMPLESDIR} + @(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${RUBY_MODEXAMPLESDIR}) + @(cd ${WRKSRC} && ${COPYTREE_SHARE} doc ${STAGEDIR}${RUBY_MODDOCDIR}) + @${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${RUBY_MODDOCDIR}/ .include <bsd.port.mk> |