1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

Update to 2.8.2.

Eliminate pkg-plist by using PLIST_FILES and PORTDOCS.
This commit is contained in:
Akinori MUSHA 2010-05-21 05:03:26 +00:00
parent e740ca5494
commit d71861a1a0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=254686
3 changed files with 20 additions and 19 deletions

View File

@ -6,7 +6,7 @@
#
PORTNAME= mysql
PORTVERSION= 2.8.1
PORTVERSION= 2.8.2
CATEGORIES= databases ruby
MASTER_SITES= RF/mysql-ruby \
http://www.tmtm.org/downloads/mysql/ruby/
@ -24,13 +24,22 @@ USE_RUBY_EXTCONF= yes
CONFIGURE_ARGS= --with-mysql-config
INSTALL_TARGET= site-install
post-install:
PLIST_FILES= %%RUBY_SITEARCHLIBDIR%%/mysql.so
.include <bsd.port.pre.mk>
.if !defined(NOPORTDOCS)
${MKDIR} ${RUBY_MODDOCDIR}/ja
${INSTALL_DATA} ${WRKSRC}/README.html ${RUBY_MODDOCDIR}/
${INSTALL_DATA} ${WRKSRC}/tommy.css ${RUBY_MODDOCDIR}/
${INSTALL_DATA} ${WRKSRC}/README_ja.html ${RUBY_MODDOCDIR}/ja/
${LN} -fs ../tommy.css ${RUBY_MODDOCDIR}/ja/
DOCSDIR= ${RUBY_MODDOCDIR}
PORTDOCS= *
.endif
.include <bsd.port.mk>
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}/ja
${INSTALL_DATA} ${WRKSRC}/README.html ${DOCSDIR}/
${INSTALL_DATA} ${WRKSRC}/tommy.css ${DOCSDIR}/
${INSTALL_DATA} ${WRKSRC}/README_ja.html ${DOCSDIR}/ja/
${LN} -fs ../tommy.css ${DOCSDIR}/ja/
.endif
.include <bsd.port.post.mk>

View File

@ -1,3 +1,3 @@
MD5 (ruby/mysql-ruby-2.8.1.tar.gz) = 83b068619f6e9cfb5778125673462f09
SHA256 (ruby/mysql-ruby-2.8.1.tar.gz) = 8218329ddc169277d00983c178ab53b945d60672062bd1a5e9e5312b6d7132f0
SIZE (ruby/mysql-ruby-2.8.1.tar.gz) = 34662
MD5 (ruby/mysql-ruby-2.8.2.tar.gz) = eb998b89b7e391cffe0a1f84bd426f9b
SHA256 (ruby/mysql-ruby-2.8.2.tar.gz) = 5474a619d7631e67088d481193f69199e28284a5d23f75a8f00de776d91f8a5c
SIZE (ruby/mysql-ruby-2.8.2.tar.gz) = 32710

View File

@ -1,8 +0,0 @@
%%RUBY_SITEARCHLIBDIR%%/mysql.so
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/README.html
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/tommy.css
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/README_ja.html
%%PORTDOCS%%@exec /bin/ln -fs ../tommy.css %D/%%RUBY_MODDOCDIR%%/ja/
%%PORTDOCS%%@unexec /bin/rm -f %D/%%RUBY_MODDOCDIR%%/ja/tommy.css
%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%/ja
%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%