pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

mail/quickml support for ruby 1.9



hi.

I have try to import from the FreeBSD Ports, mail/quickml support for ruby 1.9 .
http://www.freebsd.org/cgi/cvsweb.cgi/ports/mail/quickml/

I change Makefile (see below).

I want to use the patch only if the ruby 1.9.
If file named "patch-*" , would have been automatically(?) patch.
Therefore, the file name does not with "patch-*" .
However, In this way, become exempt from make dmi ( for distinfo ).

What is a good way or not?


% diff -u Makefile.orig Makefile
--- Makefile.orig       2012-07-11 20:56:31.000000000 +0900
+++ Makefile    2012-07-20 21:10:04.000000000 +0900
@@ -16,8 +16,6 @@
 USE_LANGUAGES= # none
 RCD_SCRIPTS+=  quickml

-# Dose not care for Ruby 1.9's character encoding for now.
-RUBY_VERSION_SUPPORTED= 18

 QUICKML_USER=  quickml
 QUICKML_GROUP= quickml
@@ -49,6 +47,12 @@

 INSTALLATION_DIRS+=    ${QUICKML_DATA_DIR}

+post-patch:
+.      if ${RUBY_VER} == "19" || ${RUBY_VER} == "192" || ${RUBY_VER} == "193"
+               cd ${WRKSRC}; \
+               ${PATCH} < ${PATCHDIR}/extra-patch-ruby19-Makefile.in
+.      endif
+
 post-install:
        ${INSTALL_DATA} ${WRKSRC}/messages.ja ${DESTDIR}${QUICKML_DATA_DIR}


-- 
miwarin

Attachment: extra-patch-ruby19-Makefile.in
Description: Binary data



Home | Main Index | Thread Index | Old Index