diff options
author | ormorph <[email protected]> | 2020-05-04 12:26:33 +0300 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2020-11-10 13:06:46 +0100 |
commit | d531cb5908a344e9325084d6536d56b27f6d23c3 (patch) | |
tree | e7a03478b6677bae53e97446a4b56d84bbc8809d /eclass/trinity-functions-2.eclass | |
parent | 4b3c351e6b81ebc5bade3d362437d51e1e37e401 (diff) | |
download | tde-packaging-gentoo-d531cb5908a344e9325084d6536d56b27f6d23c3.tar.gz tde-packaging-gentoo-d531cb5908a344e9325084d6536d56b27f6d23c3.zip |
Add `trinity-admin-prepare, trinity-gen-configure and trinity-econf functions`
Signed-off-by: ormorph <[email protected]>
Diffstat (limited to 'eclass/trinity-functions-2.eclass')
-rw-r--r-- | eclass/trinity-functions-2.eclass | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/eclass/trinity-functions-2.eclass b/eclass/trinity-functions-2.eclass index ccca0b16..528bb788 100644 --- a/eclass/trinity-functions-2.eclass +++ b/eclass/trinity-functions-2.eclass @@ -199,3 +199,48 @@ trinity_l10n_for_each_locale_do() { "${@}" ${x} || die "failed to process enabled ${x} locale" done } + +trinity-admin-prepare() { + pushd "${PWD}/admin" + libtoolize -c || die "Error libtoolize" + cp -Rp /usr/share/aclocal/libtool.m4 "libtool.m4.in" || die "No such file: libtool.m4" + popd +} + +trinity-gen-configure() { + trinity-admin-prepare + emake -f admin/Makefile.common || die "Error creating configuration" +} + +trinity-econf() { + local myconf + myconf=(--prefix="${TDEDIR}" + --bindir="${TDEDIR}/bin" + --datadir="${TDEDIR}/share" + --includedir="${TDEDIR}/include" + --libdir="${TDEDIR}/$(get_libdir)" + --disable-dependency-tracking + --enable-new-ldflags + --enable-final + --enable-closure + --enable-rpath) + + if has "debug" ${IUSE} || has "-debug" ${IUSE} || has "+debug" ${IUSE}; then + use debug && myconf+=(--enable-debug=yes) || myconf+=(--disable-debug) + else + myconf+=(--disable-debug) + fi + + if [[ "${TRINITY_NEED_ARTS}" == "yes" ]]; then + echo "configure ${myconf[@]} $@" + ./configure ${myconf[@]} $@ || die "Error creating configuration" + elif [[ "${TRINITY_NEED_ARTS}" == "optional" ]]; then + use arts || myconf+=(--without-arts) + echo "./configure ${myconf[@]} $@" + build_arts=$(usex arts yes no) ./configure ${myconf[@]} $@ || die "Error creating configuration" + else + myconf+=(--without-arts) + echo "./configure ${myconf[@]} $@" + build_arts=no ./configure ${myconf[@]} $@ || die "Error creating configuration" + fi +} |