/[gentoo-alt]/trunk/prefix/app-shells/zsh/zsh-4.2.5.ebuild
Gentoo

Diff of /trunk/prefix/app-shells/zsh/zsh-4.2.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1165 Revision 1166
49 myconf="${myconf} --enable-libs=-liconv" 49 myconf="${myconf} --enable-libs=-liconv"
50 fi 50 fi
51 51
52 econf \ 52 econf \
53 $(with_bindir) \ 53 $(with_bindir) \
54 --libdir=${PREFIX}/usr/$(get_libdir) \ 54 --libdir=${EPREFIX}/usr/$(get_libdir) \
55 --enable-etcdir=${PREFIX}/etc/zsh \ 55 --enable-etcdir=${EPREFIX}/etc/zsh \
56 --enable-zshenv=${PREFIX}/etc/zsh/zshenv \ 56 --enable-zshenv=${EPREFIX}/etc/zsh/zshenv \
57 --enable-zlogin=${PREFIX}/etc/zsh/zlogin \ 57 --enable-zlogin=${EPREFIX}/etc/zsh/zlogin \
58 --enable-zlogout=${PREFIX}/etc/zsh/zlogout \ 58 --enable-zlogout=${EPREFIX}/etc/zsh/zlogout \
59 --enable-zprofile=${PREFIX}/etc/zsh/zprofile \ 59 --enable-zprofile=${EPREFIX}/etc/zsh/zprofile \
60 --enable-zshrc=${PREFIX}/etc/zsh/zshrc \ 60 --enable-zshrc=${EPREFIX}/etc/zsh/zshrc \
61 --enable-fndir=${PREFIX}/usr/share/zsh/${PV%_*}/functions \ 61 --enable-fndir=${EPREFIX}/usr/share/zsh/${PV%_*}/functions \
62 --enable-site-fndir=${PREFIX}/usr/share/zsh/site-functions \ 62 --enable-site-fndir=${EPREFIX}/usr/share/zsh/site-functions \
63 --enable-function-subdirs \ 63 --enable-function-subdirs \
64 --enable-ldflags="${LDFLAGS}" \ 64 --enable-ldflags="${LDFLAGS}" \
65 --with-tcsetpgrp \ 65 --with-tcsetpgrp \
66 $(use_with ncurses curses-terminfo) \ 66 $(use_with ncurses curses-terminfo) \
67 $(use_enable maildir maildir-support) \ 67 $(use_enable maildir maildir-support) \
74 sed -i -e "s/link=no/link=static/g" \ 74 sed -i -e "s/link=no/link=static/g" \
75 -e "s/load=no/load=yes/g" \ 75 -e "s/load=no/load=yes/g" \
76 config.modules || die 76 config.modules || die
77 else 77 else
78 # avoid linking to libs in /usr/lib, see Bug #27064 78 # avoid linking to libs in /usr/lib, see Bug #27064
79 sed -i -e "/LIBS/s%-lpcre%${PREFIX}/usr/lib/libpcre.a%" \ 79 sed -i -e "/LIBS/s%-lpcre%${EPREFIX}/usr/lib/libpcre.a%" \
80 Makefile || die 80 Makefile || die
81 fi 81 fi
82 82
83 # hack for Darwin8 broken poll() 83 # hack for Darwin8 broken poll()
84 if use userland_Darwin ; then 84 if use userland_Darwin ; then
112 keepdir /usr/share/zsh/site-functions 112 keepdir /usr/share/zsh/site-functions
113 insinto /usr/share/zsh/${PV%_*}/functions/Prompts 113 insinto /usr/share/zsh/${PV%_*}/functions/Prompts
114 doins ${FILESDIR}/prompt_gentoo_setup || die 114 doins ${FILESDIR}/prompt_gentoo_setup || die
115 115
116 # install miscellaneous scripts; bug #54520 116 # install miscellaneous scripts; bug #54520
117 sed -i -e "s:/usr/local:${PREFIX}/usr:g" {Util,Misc}/* || "sed failed" 117 sed -i -e "s:/usr/local:${EPREFIX}/usr:g" {Util,Misc}/* || "sed failed"
118 insinto /usr/share/zsh/${PV%_*}/Util 118 insinto /usr/share/zsh/${PV%_*}/Util
119 doins Util/* || die "doins Util scripts failed" 119 doins Util/* || die "doins Util scripts failed"
120 insinto /usr/share/zsh/${PV%_*}/Misc 120 insinto /usr/share/zsh/${PV%_*}/Misc
121 doins Misc/* || die "doins Misc scripts failed" 121 doins Misc/* || die "doins Misc scripts failed"
122 122
134 134
135pkg_preinst() { 135pkg_preinst() {
136 # Our zprofile file does the job of the old zshenv file 136 # Our zprofile file does the job of the old zshenv file
137 # Move the old version into a zprofile script so the normal 137 # Move the old version into a zprofile script so the normal
138 # etc-update process will handle any changes. 138 # etc-update process will handle any changes.
139 if [ -f ${PREFIX}/etc/zsh/zshenv -a ! -f ${PREFIX}/etc/zsh/zprofile ]; then 139 if [ -f ${EPREFIX}/etc/zsh/zshenv -a ! -f ${EPREFIX}/etc/zsh/zprofile ]; then
140 mv ${PREFIX}/etc/zsh/zshenv ${PREFIX}/etc/zsh/zprofile 140 mv ${EPREFIX}/etc/zsh/zshenv ${EPREFIX}/etc/zsh/zprofile
141 fi 141 fi
142} 142}
143 143
144pkg_postinst() { 144pkg_postinst() {
145 einfo 145 einfo

Legend:
Removed from v.1165  
changed lines
  Added in v.1166

  ViewVC Help
Powered by ViewVC 1.1.20