- Update to 0.7.0

- Don't mix PORTDOCS/PORTEXAMPLES
This commit is contained in:
Philip M. Gollucci 2009-06-18 07:52:53 +00:00
parent b77a0da841
commit 4f948ee5a0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=236197
4 changed files with 14 additions and 44 deletions

View file

@ -6,10 +6,9 @@
# #
PORTNAME= serialport PORTNAME= serialport
PORTVERSION= 0.6 PORTVERSION= 0.7.0
PORTREVISION= 1
CATEGORIES= comms ruby CATEGORIES= comms ruby
MASTER_SITES= ${MASTER_SITE_RUBYFORGE} MASTER_SITES= RF
MASTER_SITE_SUBDIR= ruby-${PORTNAME} MASTER_SITE_SUBDIR= ruby-${PORTNAME}
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX} PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DISTNAME= ruby-${PORTNAME}-${PORTVERSION} DISTNAME= ruby-${PORTNAME}-${PORTVERSION}
@ -20,23 +19,21 @@ COMMENT= A Ruby library to communicate via the RS232 port
USE_RUBY= yes USE_RUBY= yes
USE_RUBY_EXTCONF= yes USE_RUBY_EXTCONF= yes
RUBY_EXTCONF= ext/extconf.rb
INSTALL_TARGET= site-install INSTALL_TARGET= site-install
DOCS= CHANGELOG README DOCS= ChangeLog README
EXAMPLES= test/*.rb EXAMPLES= examples/*.rb
post-patch:
.for f in ${EXAMPLES}
${RUBY} -i -pe 'sub!(%r"\.\./serialport", "serialport")' ${WRKSRC}/${f}
.endfor
post-install: post-install:
.if !defined(NOPORTDOCS) .if !defined(NOPORTEXAMPLES)
${MKDIR} ${RUBY_MODEXAMPLESDIR} ${MKDIR} ${RUBY_MODEXAMPLESDIR}
.for f in ${EXAMPLES} .for f in ${EXAMPLES}
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODEXAMPLESDIR}/ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODEXAMPLESDIR}/
.endfor .endfor
.endif
.if !defined(NOPORTDOCS)
${MKDIR} ${RUBY_MODDOCDIR} ${MKDIR} ${RUBY_MODDOCDIR}
.for f in ${DOCS} .for f in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/

View file

@ -1,3 +1,3 @@
MD5 (ruby/ruby-serialport-0.6.tar.gz) = c38aec045ebc7560bbaee69038d94b69 MD5 (ruby/ruby-serialport-0.7.0.tar.gz) = d754a9a192af241e1ff59db21d409e02
SHA256 (ruby/ruby-serialport-0.6.tar.gz) = 9e7d08ffccf0809d6a6c82ccdeb720238cec61691740b73d22767e0686d9f6b3 SHA256 (ruby/ruby-serialport-0.7.0.tar.gz) = f56b3505b357f0f72ed13ff65f264905ebb746cd2a0cb6e2052c7722dc6d6015
SIZE (ruby/ruby-serialport-0.6.tar.gz) = 10066 SIZE (ruby/ruby-serialport-0.7.0.tar.gz) = 17722

View file

@ -1,27 +0,0 @@
--- serialport.c.orig Sun Nov 27 10:28:52 2005
+++ serialport.c Sun Nov 27 10:35:17 2005
@@ -20,6 +20,10 @@
#include <ruby.h> /* ruby inclusion */
#include <rubyio.h> /* ruby io inclusion */
+#if defined (freebsd)
+#include <sys/param.h>
+#endif
+
struct modem_params {
int data_rate;
int data_bits;
@@ -569,9 +573,12 @@
#if defined(linux) || defined(cygwin)
"/dev/ttyS0", "/dev/ttyS1", "/dev/ttyS2", "/dev/ttyS3",
"/dev/ttyS4", "/dev/ttyS5", "/dev/ttyS6", "/dev/ttyS7"
-#elif defined(freebsd) || defined(netbsd) || defined(openbsd)
+#elif (defined(freebsd) && __FreeBSD_version < 600006) || defined(netbsd) || defined(openbsd)
"/dev/cuaa0", "/dev/cuaa1", "/dev/cuaa2", "/dev/cuaa3",
"/dev/cuaa4", "/dev/cuaa5", "/dev/cuaa6", "/dev/cuaa7"
+#elif (defined(freebsd) && __FreeBSD_version >= 600006)
+ "/dev/cuad0", "/dev/cuad1", "/dev/cuad2", "/dev/cuad3",
+ "/dev/cuad4", "/dev/cuad5", "/dev/cuad6", "/dev/cuad7"
#elif defined(solaris)
"/dev/ttya", "/dev/ttyb", "/dev/ttyc", "/dev/ttyd",
"/dev/ttye", "/dev/ttyf", "/dev/ttyg", "/dev/ttyh"

View file

@ -1,6 +1,6 @@
%%RUBY_SITEARCHLIBDIR%%/serialport.so %%RUBY_SITEARCHLIBDIR%%/serialport.so
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/miniterm.rb %%PORTEXAMPLES%%%%RUBY_MODEXAMPLESDIR%%/miniterm.rb
%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%% %%PORTEXAMPLES%%@dirrm %%RUBY_MODEXAMPLESDIR%%
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/CHANGELOG %%PORTDOCS%%%%RUBY_MODDOCDIR%%/ChangeLog
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/README %%PORTDOCS%%%%RUBY_MODDOCDIR%%/README
%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%% %%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%