freebsd-ports/textproc/rubygem-nokogiri111/Makefile
Muhammad Moinur Rahman 18c6e18276 Mk/**ruby.mk: Switch from USE_RUBY=yes to USES=ruby
Switch from Mk/bsd.ruby.mk to Mk/Uses/ruby.mk

Notable changes are.

- Mk/bsd.ruby.mk is moved to Mk/Uses/ruby.mk.
- USE_RUBY=yes is replaced with USES=ruby.
- USE_RUBY_EXTCONF is replaced with USES=ruby:extconf.
- USE_RUBY_RDOC is replaced with USES=ruby:rdoc.
- USE_RUBY_SETUP is replaces with USES=ruby:setup.
- RUBY_NO_BUILD_DEPENDS and RUBY_NO_RUN_DEPENDS are replaced with
  USES=ruby:{build,none,run}.
- RUBY_REQUIRE isn't used anywhere, so removed.
- USES=gem now implies USES=ruby.

This is mainly the work of yasu@ at https://reviews.freebsd.org/D27863

I have just made some cosmetic changes and ran exp-run to test that the
tree is not in a BROKEN state.

Approved by:	portmgr
Differential Revision:	https://reviews.freebsd.org/D37925
2023-01-14 17:08:33 -06:00

35 lines
1,022 B
Makefile

PORTNAME= nokogiri
PORTVERSION= 1.11.7
PORTREVISION= 2
CATEGORIES= textproc rubygems
MASTER_SITES= RG
PKGNAMESUFFIX= 111
MAINTAINER= ruby@FreeBSD.org
COMMENT= HTML, XML, SAX, and Reader parser
WWW= https://nokogiri.org/
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.md
BUILD_DEPENDS= ${RUN_DEPENDS}
LIB_DEPENDS= libgcrypt.so:security/libgcrypt \
libgpg-error.so:security/libgpg-error
# Do not add mini_portile2 to RUN_DEPENDS. Read ext/nokogiri/extconf.rb
# and https://lists.freebsd.org/pipermail/svn-ports-all/2019-March/209423.html
RUN_DEPENDS= rubygem-pkg-config>=1.1.7:devel/rubygem-pkg-config \
rubygem-racc>=1.4<2:devel/rubygem-racc
USES= cpe gem gnome pkgconfig gettext-runtime
USE_GNOME= libxml2 libxslt
CONFIGURE_ARGS= --use-system-libraries
post-install:
${RM} ${STAGEDIR}${PREFIX}/bin/nokogiri
${FIND} ${STAGEDIR}${PREFIX}/${GEMS_BASE_DIR} -name '*.o' -o -name '*.so' | ${XARGS} ${STRIP_CMD}
${RMDIR} ${STAGEDIR}${PREFIX}/${GEM_LIB_DIR}/ports/
PORTSCOUT= limit:^1\.11\.
.include <bsd.port.mk>