<commit_before>DESCRIPTION = "AbiWord is a free word processing program similar to Microsoft(r) Word"
HOMEPAGE = "http://www.abiword.org"
SECTION = "x11/office"
LICENSE = "GPLv2"
DEPENDS = "asio boost loudmouth libwpd librsvg goffice poppler libglade"
RDEPENDS = "abiword"

SRC_URI = "http://www.abiword.org/downloads/abiword/${PV}/source/abiword-plugins-${PV}.tar.gz \
           http://www.abiword.org/downloads/abiword/${PV}/source/abiword-${PV}.tar.gz \
#           file://abiword-cxx-for-ld-fix.patch;patch=1 \
	   "

DEFAULT_PREFERENCE = "2"

inherit autotools

PARALLEL_MAKE=""

#export LDFLAGS += " -lstdc++ "

EXTRA_OECONF = " --enable-shared=yes \
                 --enable-static \
		 --without-libwmf \
                 --without-inter7eps \
		 --with-abiword=${WORKDIR}/abiword-${PV} \
		 --with-boost=${STAGING_DIR_HOST} \ 
		 --with-boost-thread=boost_thread-mt \
               "

PACKAGES_DYNAMIC = "abiword-plugin-*"

python populate_packages_prepend () {
	abiword_libdir    = bb.data.expand('${libdir}/abiword-2.6/plugins', d)
	do_split_packages(d, abiword_libdir, '^libAbi(.*)\.so$', 'abiword-plugin-%s', 'Abiword plugin for %s', extra_depends='')
        do_split_packages(d, abiword_libdir, '^libAbi(.*)\.la$', 'abiword-plugin-%s-dev', 'Abiword plugin for %s', extra_depends='')
}


PACKAGES =+ "abiword-plugin-collab-glade"
<commit_msg>abiword: add meta-package for abiword-plugins<commit_after>DESCRIPTION = "AbiWord is a free word processing program similar to Microsoft(r) Word"
HOMEPAGE = "http://www.abiword.org"
SECTION = "x11/office"
LICENSE = "GPLv2"
DEPENDS = "asio boost loudmouth libwpd librsvg goffice poppler libglade"
RDEPENDS = "abiword"

PR = "r1"

SRC_URI = "http://www.abiword.org/downloads/abiword/${PV}/source/abiword-plugins-${PV}.tar.gz \
           http://www.abiword.org/downloads/abiword/${PV}/source/abiword-${PV}.tar.gz \
#           file://abiword-cxx-for-ld-fix.patch;patch=1 \
	   "

DEFAULT_PREFERENCE = "2"

inherit autotools

PARALLEL_MAKE=""

#export LDFLAGS += " -lstdc++ "

EXTRA_OECONF = " --enable-shared=yes \
                 --enable-static \
		 --without-libwmf \
                 --without-inter7eps \
		 --with-abiword=${WORKDIR}/abiword-${PV} \
		 --with-boost=${STAGING_DIR_HOST} \ 
		 --with-boost-thread=boost_thread-mt \
               "

PACKAGES_DYNAMIC = "abiword-plugin-*"

python populate_packages_prepend () {
	abiword_libdir    = bb.data.expand('${libdir}/abiword-2.6/plugins', d)
	do_split_packages(d, abiword_libdir, '^libAbi(.*)\.so$', 'abiword-plugin-%s', 'Abiword plugin for %s', extra_depends='')
        do_split_packages(d, abiword_libdir, '^libAbi(.*)\.la$', 'abiword-plugin-%s-dev', 'Abiword plugin for %s', extra_depends='')

	metapkg = "abiword-plugins"
	bb.data.setVar('ALLOW_EMPTY_' + metapkg, "1", d)
	bb.data.setVar('FILES_' + metapkg, "", d)
	blacklist = [ 'abiword-plugins-dbg', 'abiword-plugins', 'abiword-plugins-doc', 'abiword-plugins-dev', 'abiword-plugins-locale' ]
	metapkg_rdepends = []
	packages = bb.data.getVar('PACKAGES', d, 1).split()
	for pkg in packages[1:]:
		if not pkg in blacklist and not pkg in metapkg_rdepends:
			print "Modifying ", pkg
			metapkg_rdepends.append(pkg)
	bb.data.setVar('RDEPENDS_' + metapkg, ' '.join(metapkg_rdepends), d)
	bb.data.setVar('DESCRIPTION_' + metapkg, 'abiword-plugin meta package', d)
	packages.append(metapkg)
	bb.data.setVar('PACKAGES', ' '.join(packages), d)
}


PACKAGES =+ "abiword-plugin-collab-glade"

{'fraction_non_alphanumeric': 0.17298235464275383, 'fraction_numerical': 0.005785363031530229, 'mean_word_length': 3.598404255319149, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6070265', 'n_tokens_mistral': 1379, 'n_tokens_neox': 1313, 'n_words': 210}