Ticket #27747: patch-readline-5.diff
File patch-readline-5.diff, 6.5 KB (added by kimuraw (kimura wataru), 14 years ago) |
---|
-
readline-5/files/patch-shobj-conf
1 --- support/shobj-conf.sav 2006-05-30 06:45:41.000000000 -04002 +++ support/shobj-conf 2006-05-30 06:46:30.000000000 -04003 @@ -149,6 +149,9 @@4 darwin7*) SHOBJ_LDFLAGS=''5 SHLIB_XLDFLAGS='-dynamiclib -arch_only `/usr/bin/arch` -install_name $(libdir)/$@ -current_version $(SHLIB_MAJOR)$(SHLIB_MINOR) -compatibility_version $(SHLIB_MAJOR) -v'6 ;;7 + darwin8*) SHOBJ_LDFLAGS=''8 + SHLIB_XLDFLAGS='-dynamiclib -arch_only `/usr/bin/arch` -install_name $(libdir)/$@ -current_version $(SHLIB_MAJOR)$(SHLIB_MINOR) -compatibility_version $(SHLIB_MAJOR) -v'9 + ;;10 *) SHOBJ_LDFLAGS='-dynamic'11 SHLIB_XLDFLAGS='-arch_only `/usr/bin/arch` -install_name $(libdir)/$@ -current_version $(SHLIB_MAJOR)$(SHLIB_MINOR) -compatibility_version $(SHLIB_MAJOR) -v'12 ;; -
readline-5/files/patch-support-shobj-conf.diff
1 --- support/shobj-conf.orig 2010-12-21 00:05:09.000000000 +0900 2 +++ support/shobj-conf 2010-12-21 00:05:58.000000000 +0900 3 @@ -142,7 +142,7 @@ 4 ;; 5 6 # Darwin/MacOS X 7 -darwin[89]*) 8 +darwin[89]*|darwin10*) 9 SHOBJ_STATUS=supported 10 SHLIB_STATUS=supported 11 12 @@ -171,7 +171,7 @@ 13 SHLIB_LIBSUFF='dylib' 14 15 case "${host_os}" in 16 - darwin[789]*) SHOBJ_LDFLAGS='' 17 + darwin[789]*|darwin10*) SHOBJ_LDFLAGS='' 18 SHLIB_XLDFLAGS='-dynamiclib -arch_only `/usr/bin/arch` -install_name $(libdir)/$@ -current_version $(SHLIB_MAJOR)$(SHLIB_MINOR) -compatibility_version $(SHLIB_MAJOR) -v' 19 ;; 20 *) SHOBJ_LDFLAGS='-dynamic' -
readline-5/Portfile
3 3 PortSystem 1.0 4 4 name readline-5 5 5 set shortname readline 6 version 5. 0.0057 distname ${shortname}-5. 06 version 5.2.014 7 distname ${shortname}-5.2 8 8 categories devel 9 maintainers nomaintainer9 maintainers kimuraw openmaintainer 10 10 platforms darwin 11 11 12 12 description Library that provides command line editing … … 16 16 command lines as they are typed in. Both Emacs and vi \ 17 17 editing modes are available. The Readline library \ 18 18 includes additional functions to maintain a list of \ 19 19 previously-entered command lines, to recall and perhaps \ 20 20 reedit those lines, and perform csh-like history \ 21 21 expansion on previous commands. \ 22 22 \ 23 This version provides limited functionality. It is \ 24 intended to be used by ports that require version \ 25 5.0. Only the dynamic library is installed, and the \ 26 include files are kept in PREFIX/include/readline5. 23 The include files are kept in PREFIX/include/readline5 \ 24 and the library files are kept in PREFIX/lib/readline5. 27 25 26 # note: readline-6 is GPLv3+ 27 license GPLv2+ 28 28 29 homepage http://cnswww.cns.cwru.edu/~chet/readline/rltop.html 30 depends_lib port:ncurses 29 31 master_sites gnu:${shortname} \ 30 32 ftp://ftp.cwru.edu/pub/bash/:${shortname} 31 33 32 patch_sites ftp://ftp.cwru.edu/pub/bash/readline-5.0-patches/ 33 patchfiles readline50-001 \ 34 readline50-002 \ 35 readline50-003 \ 36 readline50-004 \ 37 readline50-005 34 patch_sites ftp://ftp.cwru.edu/pub/bash/readline-5.2-patches/ 35 patchfiles readline52-001 \ 36 readline52-002 \ 37 readline52-003 \ 38 readline52-004 \ 39 readline52-005 \ 40 readline52-006 \ 41 readline52-007 \ 42 readline52-008 \ 43 readline52-009 \ 44 readline52-010 \ 45 readline52-011 \ 46 readline52-012 \ 47 readline52-013 \ 48 readline52-014 49 # fix an error at building .dylib on Snow Leopard. 50 patchfiles-append patch-support-shobj-conf.diff 38 51 39 platform darwin 8 { patchfiles-append patch-shobj-conf } 52 checksums ${distname}${extract.suffix} md5 e39331f32ad14009b9ff49cc10c5e751 \ 53 readline52-001 md5 9d4d41622aa9b230c57f68548ce87d8f \ 54 readline52-002 md5 f03e512d14206e37f7d6a748b56b9476 \ 55 readline52-003 md5 252b42d8750f1a94b6bdf086612dceb2 \ 56 readline52-004 md5 a32333c2e603a3ed250514e91050e552 \ 57 readline52-005 md5 8106796c09b789523a3a78ab69c04b6d \ 58 readline52-006 md5 512188e2bf0837f7eca19dbf71f182ae \ 59 readline52-007 md5 ac17aca62eb6fb398c9f2fe9de540aff \ 60 readline52-008 md5 2484c392db021905f112cf97a94dfd4c \ 61 readline52-009 md5 fc6eb35d07914fae5c57d49c12483ff7 \ 62 readline52-010 md5 7a2bf3dc7ac7680b1461a5701100e91b \ 63 readline52-011 md5 ef6cef6822663470f6ac8c517c5a7ec6 \ 64 readline52-012 md5 e3e9f441c8111589855bc363e5640f6c \ 65 readline52-013 md5 3e2e5f543ed268a68fd1fa839faade1a \ 66 readline52-014 md5 a1be30e1c6f1099bb5fcef00a2631fb8 40 67 41 checksums ${distname}${extract.suffix} md5 9a39d15f1ed592883f8c6671e8c13120 \ 42 readline50-001 md5 5b47ed61b6b8413746750127c70e843d \ 43 readline50-002 md5 9f803005e7e4c7d675146a9a805acbf1 \ 44 readline50-003 md5 05d59c91f80fa99ab177783229b0f769 \ 45 readline50-004 md5 aa1f6343e47f8e024488c63281d77809 \ 46 readline50-005 md5 1dc2654e0161f2e7b4f536b12e1d54b7 68 configure.args --libdir=${prefix}/lib/readline5 \ 69 --mandir=${prefix}/share/doc/readline-5/man \ 70 --infodir=${prefix}/share/doc/readline-5/info 47 71 48 configure.args --mandir=${prefix}/share/man \ 49 --infodir=${prefix}/share/info 50 51 post-destroot { file delete -force ${destroot}${prefix}/share 52 53 file delete ${destroot}${prefix}/lib/libhistory.a 54 file delete ${destroot}${prefix}/lib/libhistory.dylib 55 file delete ${destroot}${prefix}/lib/libhistory.5.dylib 56 57 file delete ${destroot}${prefix}/lib/libreadline.a 58 file delete ${destroot}${prefix}/lib/libreadline.dylib 59 file delete ${destroot}${prefix}/lib/libreadline.5.dylib 60 72 post-destroot { 61 73 file rename ${destroot}${prefix}/include/readline ${destroot}${prefix}/include/readline5 62 74 }