Ticket #24904: worksrcpath.diff
File worksrcpath.diff, 13.5 KB (added by ryandesign (Ryan Carsten Schmidt), 14 years ago) |
---|
-
devel/ice-python/Portfile
41 41 depends_lib port:python24 \ 42 42 port:ice-cpp 43 43 44 build.dir ${worksrcpath}/py 45 44 46 post-patch { 45 47 # Remove this reinplace when 3.4.1 is released. 46 48 reinplace "s/nodarwing/nodarwin/" \ 47 ${work path}/Ice-${version}/scripts/TestUtil.py49 ${worksrcpath}/scripts/TestUtil.py 48 50 49 51 reinplace "s/-O2/-g -O2/" \ 50 ${ workpath}/Ice-${version}/py/config/Make.rules.Darwin52 ${build.dir}/config/Make.rules.Darwin 51 53 52 54 # Prevent name conflicts between libICE.* from xorg-libice and 53 55 # libIce.* from this port by renaming libIce.* to libZeroCIce.*. 54 56 reinplace "s/-lIce /-lZeroCIce /" \ 55 ${ workpath}/Ice-${version}/py/config/Make.rules57 ${build.dir}/config/Make.rules 56 58 reinplace "s/-lIce /-lZeroCIce /" \ 57 ${ workpath}/Ice-${version}/py/config/Make.rules.Darwin59 ${build.dir}/config/Make.rules.Darwin 58 60 } 59 61 60 62 use_configure no 61 63 62 build.dir ${worksrcpath}/py63 64 build.target prefix="${prefix}" \ 64 65 CC="${configure.cc}" \ 65 66 CXX="${configure.cxx}" \ … … 70 71 all 71 72 72 73 test.run yes 73 test.dir ${worksrcpath}/py74 74 test.env ICE_HOME=${prefix} 75 75 test.cmd ${prefix}/bin/python2.4 76 76 test.target allTests.py 77 77 78 destroot.dir ${worksrcpath}/py79 78 destroot.target prefix="${destroot}${prefix}" \ 80 79 CC="${configure.cc}" \ 81 80 CXX="${configure.cxx}" \ … … 113 112 foreach f {CHANGES RELEASE_NOTES} { 114 113 file copy ${worksrcpath}/${f} ${docdir} 115 114 } 116 file copy ${ worksrcpath}/py/INSTALL ${docdir}115 file copy ${build.dir}/INSTALL ${docdir} 117 116 118 117 if {[variant_isset demo_source_code]} { 119 file copy ${ worksrcpath}/py/demo ${docdir}118 file copy ${build.dir}/demo ${docdir} 120 119 } 121 120 } 122 121 -
devel/ice-cpp/Portfile
52 52 port:readline \ 53 53 port:mcpp 54 54 55 build.dir ${worksrcpath}/cpp 56 55 57 post-patch { 56 58 # Remove this reinplace when 3.4.1 is released. 57 59 reinplace "s/nodarwing/nodarwin/" \ 58 ${work path}/Ice-${version}/scripts/TestUtil.py60 ${worksrcpath}/scripts/TestUtil.py 59 61 60 62 reinplace "s/-O2/-g -O2/" \ 61 ${ workpath}/Ice-${version}/cpp/config/Make.rules.Darwin63 ${build.dir}/config/Make.rules.Darwin 62 64 63 65 # To prevent a compilation failure by picking up header files 64 66 # from an older installed version of Ice, put the $(CPPFLAGS) 65 67 # before $(READLINE_FLAGS). 66 68 reinplace "s|\$\(READLINE_FLAGS\) \$\(CPPFLAGS\)|\$\(CPPFLAGS\) \$\(READLINE_FLAGS\)|" \ 67 ${ workpath}/Ice-${version}/cpp/demo/Freeze/library/Makefile \68 ${ workpath}/Ice-${version}/cpp/demo/Freeze/phonebook/Makefile \69 ${ workpath}/Ice-${version}/cpp/demo/book/evictor_filesystem/Makefile \70 ${ workpath}/Ice-${version}/cpp/demo/book/lifecycle/Makefile \71 ${ workpath}/Ice-${version}/cpp/demo/book/map_filesystem/Makefile69 ${build.dir}/demo/Freeze/library/Makefile \ 70 ${build.dir}/demo/Freeze/phonebook/Makefile \ 71 ${build.dir}/demo/book/evictor_filesystem/Makefile \ 72 ${build.dir}/demo/book/lifecycle/Makefile \ 73 ${build.dir}/demo/book/map_filesystem/Makefile 72 74 73 75 # It appears that the 10.4 and 10.5 installed versions of 74 76 # ${prefix}/include/iconv.h have different definitions of … … 80 82 close $fl 81 83 foreach line [split $data \n] { 82 84 if {[string match "extern size_t iconv*const*" $line]} { 83 reinplace "s/_LIBICONV_VERSION < 0x010B/1/" ${ workpath}/Ice-${version}/cpp/include/Ice/IconvStringConverter.h85 reinplace "s/_LIBICONV_VERSION < 0x010B/1/" ${build.dir}/include/Ice/IconvStringConverter.h 84 86 break 85 87 } 86 88 } … … 88 90 # Prevent name conflicts between libICE.* from xorg-libice and 89 91 # libIce.* from this port by renaming libIce.* to libZeroCIce.*. 90 92 reinplace "s/,Ice/,ZeroCIce/" \ 91 ${ workpath}/Ice-${version}/cpp/src/Ice/Makefile93 ${build.dir}/src/Ice/Makefile 92 94 reinplace "s/-lIce /-lZeroCIce /" \ 93 ${ workpath}/Ice-${version}/cpp/config/Make.rules.Darwin94 foreach {f} [exec find ${ workpath}/Ice-${version}/cpp-name Makefile] {95 ${build.dir}/config/Make.rules.Darwin 96 foreach {f} [exec find ${build.dir} -name Makefile] { 95 97 reinplace "s/-lIce /-lZeroCIce /" ${f} 96 98 } 97 99 } … … 99 101 use_configure no 100 102 101 103 build { 102 set cmd "cd ${ workpath}/Ice-${version}/cpp&& make prefix='${prefix}' embedded_runpath_prefix='${prefix}' CC='${configure.cc}' CXX='${configure.cxx}' OPTIMIZE='yes' BZIP2_HOME='${prefix}' DB_HOME='${prefix}' EXPAT_HOME='${prefix}' OPENSSL_HOME='${prefix}' READLINE_HOME='${prefix}' USE_READLINE=yes MCPP_HOME='${prefix}' LDPLATFORMFLAGS= all && cd doc && make"104 set cmd "cd ${build.dir} && make prefix='${prefix}' embedded_runpath_prefix='${prefix}' CC='${configure.cc}' CXX='${configure.cxx}' OPTIMIZE='yes' BZIP2_HOME='${prefix}' DB_HOME='${prefix}' EXPAT_HOME='${prefix}' OPENSSL_HOME='${prefix}' READLINE_HOME='${prefix}' USE_READLINE=yes MCPP_HOME='${prefix}' LDPLATFORMFLAGS= all && cd doc && make" 103 105 ui_debug ${cmd} 104 106 system ${cmd} 105 107 } 106 108 107 test.dir ${worksrcpath}/cpp108 109 test.run yes 109 110 test.target test 110 111 111 destroot.dir ${worksrcpath}/cpp112 112 destroot.target prefix="${destroot}${prefix}" \ 113 113 embedded_runpath_prefix="${prefix}" \ 114 114 OPTIMIZE="yes" \ … … 122 122 install 123 123 124 124 post-destroot { 125 set cppdir ${workpath}/Ice-${version}/cpp126 125 set sharedir ${destroot}${prefix}/share 127 126 set docdir ${sharedir}/doc/${name} 128 127 … … 133 132 xinstall -m 755 -d ${docdir} 134 133 file rename ${destroot}${prefix}/ICE_LICENSE ${docdir} 135 134 file rename ${destroot}${prefix}/LICENSE ${docdir} 136 file copy ${ cppdir}/doc/reference ${docdir}135 file copy ${build.dir}/doc/reference ${docdir} 137 136 138 137 foreach f {CHANGES RELEASE_NOTES} { 139 file copy ${work path}/Ice-${version}/${f} ${docdir}138 file copy ${worksrcpath}/${f} ${docdir} 140 139 } 141 140 142 141 if {[variant_isset demo_source_code]} { 143 system "cd ${ cppdir}/demo && make clean"144 file copy ${ cppdir}/demo $docdir142 system "cd ${build.dir}/demo && make clean" 143 file copy ${build.dir}/demo $docdir 145 144 } 146 145 } 147 146 -
devel/ice-java/Portfile
47 47 port:jgoodies-looks \ 48 48 port:proguard 49 49 50 build.dir ${worksrcpath}/java 51 50 52 post-patch { 51 53 # Remove this reinplace when 3.4.1 is released. 52 54 reinplace "s/nodarwing/nodarwin/" \ 53 ${work path}/Ice-${version}/scripts/TestUtil.py55 ${worksrcpath}/scripts/TestUtil.py 54 56 } 55 57 56 58 use_configure no 57 59 58 60 set classpath ${prefix}/lib/db46/db.jar:${prefix}/share/java/forms.jar:${prefix}/share/java/looks.jar:${prefix}/share/java/proguard.jar 59 61 60 build.dir ${worksrcpath}/java61 62 build.env JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home CLASSPATH=${classpath} ANT_OPTS=-Xmx512m ICE_HOME=${prefix} 62 63 build.cmd ant 63 64 build.target clean all 64 65 65 66 test.run yes 66 test.dir ${worksrcpath}/java67 67 test.env JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home CLASSPATH=${classpath} ANT_OPTS=-Xmx512m ICE_HOME=${prefix} DYLD_LIBRARY_PATH=${prefix}/lib/db46 68 68 test.cmd python 69 69 test.target allTests.py 70 70 71 71 destroot { 72 set ice-java ${workpath}/Ice-${version}/java73 72 set javadir ${destroot}${prefix}/share/java 74 73 set docdir ${destroot}${prefix}/share/doc/${name} 75 74 … … 77 76 xinstall -d -m 755 ${docdir} 78 77 79 78 foreach f {ant-ice.jar Ice.jar IceGridGUI.jar} { 80 file copy ${ ice-java}/lib/${f} ${javadir}/79 file copy ${build.dir}/lib/${f} ${javadir}/ 81 80 } 82 file copy ${ ice-java}/resources/IceGridAdmin ${docdir}/81 file copy ${build.dir}/resources/IceGridAdmin ${docdir}/ 83 82 84 83 foreach f {CHANGES ICE_LICENSE LICENSE RELEASE_NOTES} { 85 84 file copy ${worksrcpath}/${f} ${docdir} 86 85 } 87 file copy ${ worksrcpath}/java/INSTALL ${docdir}86 file copy ${build.dir}/INSTALL ${docdir} 88 87 89 88 if {[variant_isset demo_source_code]} { 90 file copy ${ ice-java}/demo ${docdir}/89 file copy ${build.dir}/demo ${docdir}/ 91 90 } 92 91 } 93 92 -
devel/ice-python25/Portfile
41 41 depends_lib port:python25 \ 42 42 port:ice-cpp 43 43 44 build.dir ${worksrcpath}/py 45 44 46 post-patch { 45 47 # Remove this reinplace when 3.4.1 is released. 46 48 reinplace "s/nodarwing/nodarwin/" \ 47 ${work path}/Ice-${version}/scripts/TestUtil.py49 ${worksrcpath}/scripts/TestUtil.py 48 50 49 51 reinplace "s/-O2/-g -O2/" \ 50 ${ workpath}/Ice-${version}/py/config/Make.rules.Darwin52 ${build.dir}/config/Make.rules.Darwin 51 53 52 54 # Prevent name conflicts between libICE.* from xorg-libice and 53 55 # libIce.* from this port by renaming libIce.* to libZeroCIce.*. 54 56 reinplace "s/-lIce /-lZeroCIce /" \ 55 ${ workpath}/Ice-${version}/py/config/Make.rules57 ${build.dir}/config/Make.rules 56 58 reinplace "s/-lIce /-lZeroCIce /" \ 57 ${ workpath}/Ice-${version}/py/config/Make.rules.Darwin59 ${build.dir}/config/Make.rules.Darwin 58 60 } 59 61 60 62 use_configure no 61 63 62 build.dir ${worksrcpath}/py63 64 build.target prefix="${prefix}" \ 64 65 CC="${configure.cc}" \ 65 66 CXX="${configure.cxx}" \ … … 70 71 all 71 72 72 73 test.run yes 73 test.dir ${worksrcpath}/py74 74 test.env ICE_HOME=${prefix} 75 75 test.cmd ${prefix}/bin/python2.5 76 76 test.target allTests.py 77 77 78 destroot.dir ${worksrcpath}/py79 78 destroot.target prefix="${destroot}${prefix}" \ 80 79 CC="${configure.cc}" \ 81 80 CXX="${configure.cxx}" \ … … 113 112 foreach f {CHANGES RELEASE_NOTES} { 114 113 file copy ${worksrcpath}/${f} ${docdir} 115 114 } 116 file copy ${ worksrcpath}/py/INSTALL ${docdir}115 file copy ${build.dir}/INSTALL ${docdir} 117 116 118 117 if {[variant_isset demo_source_code]} { 119 file copy ${ worksrcpath}/py/demo ${docdir}118 file copy ${build.dir}/demo ${docdir} 120 119 } 121 120 } 122 121 -
devel/ice-python26/Portfile
41 41 depends_lib port:python26 \ 42 42 port:ice-cpp 43 43 44 build.dir ${worksrcpath}/py 45 44 46 post-patch { 45 47 # Remove this reinplace when 3.4.1 is released. 46 48 reinplace "s/nodarwing/nodarwin/" \ 47 ${work path}/Ice-${version}/scripts/TestUtil.py49 ${worksrcpath}/scripts/TestUtil.py 48 50 49 51 reinplace "s/-O2/-g -O2/" \ 50 ${ workpath}/Ice-${version}/py/config/Make.rules.Darwin52 ${build.dir}/config/Make.rules.Darwin 51 53 52 54 # Prevent name conflicts between libICE.* from xorg-libice and 53 55 # libIce.* from this port by renaming libIce.* to libZeroCIce.*. 54 56 reinplace "s/-lIce /-lZeroCIce /" \ 55 ${ workpath}/Ice-${version}/py/config/Make.rules57 ${build.dir}/config/Make.rules 56 58 reinplace "s/-lIce /-lZeroCIce /" \ 57 ${ workpath}/Ice-${version}/py/config/Make.rules.Darwin59 ${build.dir}/config/Make.rules.Darwin 58 60 } 59 61 60 62 use_configure no 61 63 62 build.dir ${worksrcpath}/py63 64 build.target prefix="${prefix}" \ 64 65 CC="${configure.cc}" \ 65 66 CXX="${configure.cxx}" \ … … 70 71 all 71 72 72 73 test.run yes 73 test.dir ${worksrcpath}/py74 74 test.env ICE_HOME=${prefix} 75 75 test.cmd ${prefix}/bin/python2.6 76 76 test.target allTests.py 77 77 78 destroot.dir ${worksrcpath}/py79 78 destroot.target prefix="${destroot}${prefix}" \ 80 79 CC="${configure.cc}" \ 81 80 CXX="${configure.cxx}" \ … … 117 116 foreach f {CHANGES RELEASE_NOTES} { 118 117 file copy ${worksrcpath}/${f} ${docdir} 119 118 } 120 file copy ${ worksrcpath}/py/INSTALL ${docdir}119 file copy ${build.dir}/INSTALL ${docdir} 121 120 122 121 if {[variant_isset demo_source_code]} { 123 file copy ${ worksrcpath}/py/demo ${docdir}122 file copy ${build.dir}/demo ${docdir} 124 123 } 125 124 } 126 125