<commit_before>DESCRIPTION = "A minimal version of the Mozilla web browser for mobile devices"
SECTION = "x11/network"
LICENSE = "MPL GPL LGPL"
HOMEPAGE = "http://www.mozilla.org/projects/minimo/"
PRIORITY = "optional"

DEPENDS = "libxrender xt xft fontconfig freetype libidl dbus-glib pango atk gtk+ libidl-native zip-native"

CVSSVR="cvs-mirror.mozilla.org"
BRTAG = "MOZILLA_1_8_BRANCH"
MOZDATE = "20070626"

PV = "0.02+cvs${MOZDATE}"
PE = "1"

SRC_URI = "cvs://anonymous@${CVSSVR}/cvsroot;module=mozilla;tag=${BRTAG};date=${MOZDATE} \
	   file://minimo.patch;patch=1 \
           file://bug-322806.diff;patch=1 \
	   file://mozconfig file://minimo \
	   file://eabi-fix.patch;patch=1 \
	   file://eabi-fix2.patch;patch=1 \
	   file://eabi-fix3.patch;patch=1 \
	   file://minimo-components-ssr-only.patch;patch=1 \
	   file://minimo-disable-mode-switch.patch;patch=1 \
           file://minimo.desktop file://minimo.png"

inherit autotools

S = "${WORKDIR}/mozilla"

export MOZCONFIG = "${WORKDIR}/mozconfig"

export CROSS_COMPILE="1"
export ac_cv_prog_HOST_CC="${BUILD_CC}"
export ac_cv_prog_HOST_CFLAGS="${BUILD_CFLAGS}"
export ac_cv_prog_HOST_CXX="${BUILD_CXX}"
export ac_cv_prog_HOST_CXXFLAGS="${BUILD_CXXFLAGS}"
export HOST_LIBIDL_CONFIG = "libIDL-config-2"

mozdir="${libdir}/mozilla-minimo"

EXTRA_OECONF += "--build=${BUILD_SYS} --host=${BUILD_SYS} --target=${TARGET_SYS} "

do_configure() {
	cd ${S}
	oe_runmake -f client.mk CONFIGURE_ARGS="${EXTRA_OECONF}" configure
	sed -i s:${TARGET_PREFIX}strip:echo:g config/autoconf.mk
}

do_compile() {
	cd ${S}
	oe_runmake -f client.mk build
}

do_install() {
	cd ${WORKDIR}

	install -d ${D}${bindir}
	install -m 0755 minimo ${D}${bindir}

	install -d ${D}${datadir}/applications
	install -m 0644 minimo.desktop ${D}${datadir}/applications

	install -d ${D}/${datadir}/pixmaps
	install -m 0644 minimo.png ${D}${datadir}/pixmaps

	cd ${S}

	./minimo/config/linux_package.sh ${S} ${S}/minimo/config<commit_msg>minimo: Fix libIDL linking (patch by <NAME> <<EMAIL>>)<commit_after>DESCRIPTION = "A minimal version of the Mozilla web browser for mobile devices"
SECTION = "x11/network"
LICENSE = "MPL GPL LGPL"
HOMEPAGE = "http://www.mozilla.org/projects/minimo/"
PRIORITY = "optional"

DEPENDS = "libxrender xt xft fontconfig freetype libidl dbus-glib pango atk gtk+ libidl-native zip-native"

CVSSVR="cvs-mirror.mozilla.org"
BRTAG = "MOZILLA_1_8_BRANCH"
MOZDATE = "20070626"

PV = "0.02+cvs${MOZDATE}"
PE = "1"

SRC_URI = "cvs://anonymous@${CVSSVR}/cvsroot;module=mozilla;tag=${BRTAG};date=${MOZDATE} \
	   file://minimo.patch;patch=1 \
           file://bug-322806.diff;patch=1 \
	   file://mozconfig file://minimo \
	   file://eabi-fix.patch;patch=1 \
	   file://eabi-fix2.patch;patch=1 \
	   file://eabi-fix3.patch;patch=1 \
	   file://minimo-components-ssr-only.patch;patch=1 \
	   file://minimo-disable-mode-switch.patch;patch=1 \
           file://minimo.desktop file://minimo.png"

inherit autotools

S = "${WORKDIR}/mozilla"

export MOZCONFIG = "${WORKDIR}/mozconfig"

export CROSS_COMPILE="1"
export ac_cv_prog_HOST_CC="${BUILD_CC}"
export ac_cv_prog_HOST_CFLAGS="${BUILD_CFLAGS}"
export ac_cv_prog_HOST_CXX="${BUILD_CXX}"
export ac_cv_prog_HOST_CXXFLAGS="${BUILD_CXXFLAGS}"
export HOST_LIBIDL_CONFIG = "${STAGING_DIR}/${BUILD_SYS}/bin/libIDL-config-2"

mozdir="${libdir}/mozilla-minimo"

EXTRA_OECONF += "--build=${BUILD_SYS} --host=${BUILD_SYS} --target=${TARGET_SYS} "

do_configure() {
	cd ${S}
	oe_runmake -f client.mk CONFIGURE_ARGS="${EXTRA_OECONF}" configure
	sed -i s:${TARGET_PREFIX}strip:echo:g config/autoconf.mk
}

do_compile() {
	cd ${S}
	oe_runmake -f client.mk build
}

do_install() {
	cd ${WORKDIR}

	install -d ${D}${bindir}
	install -m 0755 minimo ${D}${bindir}

	install -d ${D}${datadir}/applications
	install -m 0644 minimo.desktop ${D}${datadir}/applications

	install -d ${D}/${datadir}/pixmaps
	install -m 0644 minimo.png ${D}${datadir}/pixmaps

	cd ${S}

	./minimo/config/linux_package.sh ${S} ${S}/minimo/config
{'fraction_non_alphanumeric': 0.17212909682261696, 'fraction_numerical': 0.022516887665749313, 'mean_word_length': 4.607293127629734, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7034018', 'n_tokens_mistral': 1665, 'n_tokens_neox': 1570, 'n_words': 272}