summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2013-01-15 00:39:59 +0000
committerTim Harder <radhermit@gentoo.org>2013-01-15 00:39:59 +0000
commitc00e4151bbbd6837be4560d1b5dc749771b51e83 (patch)
tree652d4e8125e1b76fabe51ecdef219c9082dc0a5b /sys-apps/file
parentAdd patch to fix bug 442896 (diff)
downloadhistorical-c00e4151bbbd6837be4560d1b5dc749771b51e83.tar.gz
historical-c00e4151bbbd6837be4560d1b5dc749771b51e83.tar.bz2
historical-c00e4151bbbd6837be4560d1b5dc749771b51e83.zip
Add live ebuild.
Package-Manager: portage-2.2.0_alpha151/cvs/Linux x86_64 Manifest-Sign-Key: 0x4AB3E85B4F064CA3
Diffstat (limited to 'sys-apps/file')
-rw-r--r--sys-apps/file/ChangeLog7
-rw-r--r--sys-apps/file/Manifest23
-rw-r--r--sys-apps/file/file-9999.ebuild101
3 files changed, 116 insertions, 15 deletions
diff --git a/sys-apps/file/ChangeLog b/sys-apps/file/ChangeLog
index 0979c4631ebc..1a1979af8bdc 100644
--- a/sys-apps/file/ChangeLog
+++ b/sys-apps/file/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sys-apps/file
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/file/ChangeLog,v 1.229 2013/01/04 02:30:53 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/file/ChangeLog,v 1.230 2013/01/15 00:39:52 radhermit Exp $
+
+*file-9999 (15 Jan 2013)
+
+ 15 Jan 2013; Tim Harder <radhermit@gentoo.org> +file-9999.ebuild:
+ Add live ebuild.
*file-5.12 (04 Jan 2013)
diff --git a/sys-apps/file/Manifest b/sys-apps/file/Manifest
index 3ae2c48fb43d..562ec81bc15b 100644
--- a/sys-apps/file/Manifest
+++ b/sys-apps/file/Manifest
@@ -22,22 +22,17 @@ EBUILD file-5.09.ebuild 2404 SHA256 3416f0c56da59461693478f92b1cf029e11dbfbef0ea
EBUILD file-5.10.ebuild 2360 SHA256 19337aae3a46e307547584684d5eb126e6da4a9e85e7464f76daaf2918bd00d5 SHA512 b4a817e7038568c7e2d652a067664b66e4909a0dc487e3d950956f8420f04c028b2efed410b015854578e4d447775324866248bb0e55a00a09665a6fdfbc061c WHIRLPOOL c9d34218c01c2588c2ec089d2b02bc1de25a5c8392c9bb66fe67812f4ad5783476d3bde1bbb7d9b4a7e16187f276aa02ac257674011b894c662f22ac76e85302
EBUILD file-5.11.ebuild 2344 SHA256 5a4730635d5d09c2854949b93676cefef0b5b58d330edfe343d7286b004cc207 SHA512 c33e721d8b18b107973d5a3e85a1013c32c7c84ac04afc97061a31cfe7867eb90251e64fec278e24a12925f426929fa24e3bf1173d6361dc82c330269ce01ed4 WHIRLPOOL 83dfc0bccf8f13c143c3d9a6383405c3b01aff9d89f832b46ae5259ecb6d382cfd219e62e58794d188bbff9c1ef40afe6c5abc259a43a2d0e55783e915802b94
EBUILD file-5.12.ebuild 2356 SHA256 834a5c7755472464d1aa759f9c202ed90606e47c3a9b17368bbedf25c028e88b SHA512 8615cfb838cd14a06c791ce73b4a91ff5dba452b6cb9eea5a8f1b389b9ba3a4bcafae583953dd462f50004fea6f91412673246df8d5b111069e411bee5d5141c WHIRLPOOL 41def290f7704fd315e5e2bfe293fb235524cdd98e91fd008bcf49828c564d646ff60e1099796d20291dac9567fb8beacacb3c2f44b30e45f8125b202c03ed47
-MISC ChangeLog 27727 SHA256 1b325c5dff1cf9eaa4871ecc1466c7ceae35217bad960125922ff9a01e843974 SHA512 25734f157e6f8b5f4a75393abd585c8ae7328555827a99c615f4ee0b855039f1c5daf8c9ef5af53c3396d34474a6e774d33fcb88542592abbfe3dc48682cee46 WHIRLPOOL b21f44cfb9b6afcd9d03cf3946f710be49c3c8a14d486c28f21f62dbad71ea55057c3c9f3ecb12da1281e9f6bce8240ada96bad3b32f252a1a41f67a38ff1fba
+EBUILD file-9999.ebuild 2430 SHA256 5350bb924a7a323f91aa1c6d1c2afe05abf7a055e85b86ca3b2f787dd8f2b886 SHA512 eee575ff35dd01bce6ab10788db86c3a36be7163a20e4fd8b06c7daee5e5d1a655b051f3b5c20a63a3a72f61a7574ce88d8fb7b1f6f1189adcb01e6cdb9c4829 WHIRLPOOL abda0e2b35ff6827641ee46d429e0ffb4eaaddf72daa0274f91343a5052c94de356cee2985b6db2fc1d0a79ba82e167b2eb7f7a858f4194813ea73957931d727
+MISC ChangeLog 27844 SHA256 fdc0e09c76de7011bd8866b6e087872dc6ea0e5b8c0f5931db792d2cc809b5da SHA512 2a7c35cca06e292abb342c8ee799698812258435845da8e87f4f24c70da5d87bfec91a43720ce5385388a6ea286919bc345fa8a82fc4739c53f83c26824c7a27 WHIRLPOOL fe3c7707ac77c6e427514b25b17a5558543ef7dd3eaee2017b529da367f46cceff5a47a9e34650ee0b17215f7d7332830df86076b507c28bfcea9e89c649d5a5
MISC metadata.xml 227 SHA256 ecd74a3d9a250a8c5c597b45fd334ab26335074b687bc12f5a6fea32ef9f0690 SHA512 bf2e56b14ac89961c21f5eba6bf90e4f21fd001b88963bcf4c21d0ec63f7b860611bd8883b8760c2bc81dde2a9669456123033ca54337441016379f80e6029cf WHIRLPOOL 22c14f95d7a544f0c11e11136811724ebe69dc0c607073307a28446b1ebeb4ab8838180947a4f496f41648522e34b5dab71680c330a0085b774dbc9ea23ff647
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iQIcBAEBCAAGBQJQ5j9OAAoJELEHsLL7fEFW0/8P/3D3Ut4O1tHrD31vHf7CAYWA
-dHjN6Pxm2A9mAuqd+wZaslt/mYpNPza6k6Gbp5y1Sk/RtHi4gVzRSUEPk6Ped/bM
-mDd1vaeICy+oOKPIhzdCu/GUcdl4x1BR3Y72d3eWePkeFug5Haf5UuVmPl82rZPo
-DBPTKk6HCyCUC5hAJuiZGyzuihmhZ0dDDpgOlq8GIRGbYVyabvCAU+oEXfCmzhmH
-RDy4GpxGxtLUQ5gH/uwh8NowGgrOXpVHRjKISBFMU2LUiL9dqkmpTx+ACFw47qdA
-uHAq7GeGPEGb8QZJbgYlXAYsXc926LLI8/0jvIve5cBbFZCWUnDE14kIxVr3RIgf
-6FHgC670B9LE9hOHHKbQsxQdXKLtRK+g5cgF+69lZXI1J9rNAD0ekhK+2gscSnvK
-n41zOLhrHxLrg1Tfq94GWnqCBfokQtuTBululPLPYxzC9iTxrHNKT9Rn6AREuMfS
-942A3H4y7x3TOilxEGWH2d8/pus0P0e9zTonOwtUMlloHPoD1ro3EgBNMLo0wOpn
-s6CbMnFwB8EhZvLLeiJDahwgUmg/Gvf8ga/tpcrgn/LlWX/k1KM61/asKU/NrF4o
-5xxU1D67LuUuVlXUEzlVN+m1hOGIxhvYzDKDETq/WA1/I2vn7BiV/p9gATwx7Q5X
-XXhlTYKP1O5LazZKLU9Z
-=VRyq
+iQEcBAEBCAAGBQJQ9KVeAAoJEEqz6FtPBkyjvQEIALZ0bdZvwhGQYtuPNy4EuJkr
+mZZ3GWZ5GW6ajh1KeKfP54bZ/YGKZhcGMeP8Fjmd8g2r5eIlEyLXPPtRcHXJrv3L
+l5HROm0/EPC8KTc49NAEV4oCK2fZ4A2zcgXy+Q1dV0QiwSkWovI2IbVk7MjmfZaT
+J4d0/2nbecT0eKeo9tdkBezSrq3B+XoWqBJN4Ijq+Z5PMAtfSBBv41Yk2iJLlQ4G
+ZGZkZtEl0g9msoqveMOQOJhwwHRn/3hR2h2s9hAJO2umHTBTGFZvIcKMXaQ9o/g4
+SCIfwhFNMOtg+KnHeDbOM+X0xZinHwHYqH7baijMGRykkOCISZySG2FBovfe2js=
+=OZq2
-----END PGP SIGNATURE-----
diff --git a/sys-apps/file/file-9999.ebuild b/sys-apps/file/file-9999.ebuild
new file mode 100644
index 000000000000..c7453537c9db
--- /dev/null
+++ b/sys-apps/file/file-9999.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/file/file-9999.ebuild,v 1.1 2013/01/15 00:39:52 radhermit Exp $
+
+EAPI="4"
+PYTHON_DEPEND="python? *"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="*-jython"
+
+inherit eutils distutils libtool toolchain-funcs
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="git://github.com/glensc/file.git"
+ inherit autotools git-2
+else
+ SRC_URI="ftp://ftp.astron.com/pub/file/${P}.tar.gz
+ ftp://ftp.gw.com/mirrors/pub/unix/file/${P}.tar.gz"
+ KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
+fi
+
+DESCRIPTION="identify a file's format by scanning binary data for patterns"
+HOMEPAGE="http://www.darwinsys.com/file/"
+
+LICENSE="BSD-2"
+SLOT="0"
+IUSE="python static-libs zlib"
+
+RDEPEND="zlib? ( sys-libs/zlib )"
+DEPEND="${RDEPEND}"
+
+PYTHON_MODNAME="magic.py"
+
+src_prepare() {
+ [[ ${PV} == "9999" ]] && eautoreconf
+ elibtoolize
+
+ # don't let python README kill main README #60043
+ mv python/README{,.python}
+}
+
+wd() { echo "${WORKDIR}"/build-${CHOST}; }
+do_configure() {
+ ECONF_SOURCE=${S}
+
+ mkdir "$(wd)"
+ pushd "$(wd)" >/dev/null
+
+ econf "$@"
+
+ popd >/dev/null
+}
+src_configure() {
+ # when cross-compiling, we need to build up our own file
+ # because people often don't keep matching host/target
+ # file versions #362941
+ if tc-is-cross-compiler && ! ROOT=/ has_version ~${CATEGORY}/${P} ; then
+ tc-export_build_env BUILD_C{C,XX}
+ ac_cv_header_zlib_h=no \
+ ac_cv_lib_z_gzopen=no \
+ CHOST=${CBUILD} \
+ CFLAGS=${BUILD_CFLAGS} \
+ CXXFLAGS=${BUILD_CXXFLAGS} \
+ CPPFLAGS=${BUILD_CPPFLAGS} \
+ LDFLAGS="${BUILD_LDFLAGS} -static" \
+ CC=${BUILD_CC} \
+ CXX=${BUILD_CXX} \
+ do_configure --disable-shared
+ fi
+
+ export ac_cv_header_zlib_h=$(usex zlib) ac_cv_lib_z_gzopen=$(usex zlib)
+ do_configure $(use_enable static-libs static)
+}
+
+do_make() {
+ emake -C "$(wd)" "$@"
+}
+src_compile() {
+ if tc-is-cross-compiler && ! ROOT=/ has_version ~${CATEGORY}/${P} ; then
+ CHOST=${CBUILD} do_make -C src file
+ PATH=$(CHOST=${CBUILD} wd)/src:${PATH}
+ fi
+ do_make
+
+ use python && cd python && distutils_src_compile
+}
+
+src_install() {
+ default
+ dodoc MAINT
+
+ use python && cd python && distutils_src_install
+ prune_libtool_files
+}
+
+pkg_postinst() {
+ use python && distutils_pkg_postinst
+}
+
+pkg_postrm() {
+ use python && distutils_pkg_postrm
+}