Ticket #149: shr.eclass.diff
| File shr.eclass.diff, 1.1 KB (added by alonbl, 3 years ago) |
|---|
-
shr.eclass
5 5 inherit autotools eutils git 6 6 7 7 EGIT_REPO_URI="http://shr.bearstech.com/repo/shr.git" 8 EGIT_TREE="10c44ec2d1a86efc2670671655715707814ccdaf"9 8 EGIT_PROJECT="shr" 9 case "${PV}" in 10 20090308) 11 EGIT_TREE="10c44ec2d1a86efc2670671655715707814ccdaf" 12 ;; 13 99999999) 14 ;; 15 *) 16 die "Unsupported version" 17 ;; 18 esac 10 19 11 20 shr_src_unpack() { 12 21 git_src_unpack 13 22 cd "${S}/${PROJECT_NAME}" 23 if grep -q AM_GNU_GETTEXT_VERSION configure.ac; then 24 autopoint -f 25 fi 14 26 eautoreconf || die "autoreconf failed" 15 glib-gettextize --force --copy || die "glib-gettextize failed"27 glib-gettextize --force --copy || die "glib-gettextize failed" 16 28 } 17 29 18 30 shr_src_compile() { 19 31 cd "${S}/${PROJECT_NAME}" 20 econf ${ EXTRA_ECONF_OPTS}|| die "econf failed"32 econf ${SHR_EXTRA_ECONF_OPTS} || die "econf failed" 21 33 emake || die "emake failed" 22 34 } 23 35 24 shr_src_install () {36 shr_src_install() { 25 37 cd "${S}/${PROJECT_NAME}" 26 38 emake DESTDIR="${D}" install || die "emake install failed" 27 39 dodoc AUTHORS NEWS README
