From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- media-libs/libptp2/Manifest | 7 ++++ .../libptp2/files/libptp2-1.1.10-configure.patch | 46 ++++++++++++++++++++++ .../libptp2/files/libptp2-1.1.10-makefile.patch | 11 ++++++ media-libs/libptp2/libptp2-1.1.10.ebuild | 33 ++++++++++++++++ media-libs/libptp2/metadata.xml | 8 ++++ 5 files changed, 105 insertions(+) create mode 100644 media-libs/libptp2/Manifest create mode 100644 media-libs/libptp2/files/libptp2-1.1.10-configure.patch create mode 100644 media-libs/libptp2/files/libptp2-1.1.10-makefile.patch create mode 100644 media-libs/libptp2/libptp2-1.1.10.ebuild create mode 100644 media-libs/libptp2/metadata.xml (limited to 'media-libs/libptp2') diff --git a/media-libs/libptp2/Manifest b/media-libs/libptp2/Manifest new file mode 100644 index 000000000000..80d6e36a6dfb --- /dev/null +++ b/media-libs/libptp2/Manifest @@ -0,0 +1,7 @@ +AUX libptp2-1.1.10-configure.patch 1119 SHA256 a6a4f62d59d92371c0950dd267751400a3db1106010df4a973ea4651c9ea40d2 SHA512 1bfab2967ac108c2329ea83d86ddf80bab0a778f4ccfed32866503d37f1ac99aefdd479565152a306b9f2a1403401416fb7b243aa25baf99e07acd766fbad33b WHIRLPOOL da44f167742741d3da47477825f6e2019d4af0aef31ebaeebb713dbe9118f6baac9706e5bfcb04dca8caaaa1321b4cd6d88aa7cd13d7f05b450b3ae5de52e29f +AUX libptp2-1.1.10-makefile.patch 373 SHA256 aa74a7149fbcba2998d9a63809f3b94a939fc3600eb15b3409db17cf612f31d5 SHA512 6567cf03c85e73a1f3dbbea8fb2bef6539491ffe1a729efbf5ae93e5e5ff0efda9634ebac1b7d33db16432fa7cae20cdbea5839da0179997df0cfa3e709a0a01 WHIRLPOOL 268f9e117dae9246712a42b147b8ad44a305a40e7045de6d82b8a986c6c4c56d6eeebe9bdc8b97c6e02eb58c5d5e1d2a999be55350020b79dbedb74eb97c18ba +DIST libptp2-1.1.10.tar.gz 380767 SHA256 ce9c0c220a24ffecd4c4a2563de9e78137965bc2118c3de53dbfd928cfd92e74 SHA512 9c6140c389f995d08cf49e5215e407131f51b17fc901e47c5ee675d9fff9d49075554ebc21549b239013fd7d2bd5ab8fb8ad9645ded149901479f6b85c808d44 WHIRLPOOL 33c4b65b285f6752f5728e5d3fc88e870c88fd1cf2be38270b7663f5e89695363ec0aa00e8e4667e89f62bc0112c81bcacde97eb85b86b11e91e5fe6fa796017 +EBUILD libptp2-1.1.10.ebuild 686 SHA256 12d1d6b9ac8c3b7e6467cf8410e8a302db31b5efc6722fd665a45a2f0f16a74e SHA512 63253a72f1d6ada12dbbb1cc000e4b315668e7cc96cc9b2755ed116cf424b7feec7fb3aaf68c8f9f1f82fa4df4a00c1a887e75c3389eed261defc96da4c88e7c WHIRLPOOL c584857830bfb312ed1b0d8dcb566fa6aab3eec9c2b3a309e59d60a2900498138337a62926b14022182c276bb6f1e732f1a6f9b012f9a6f494ccf4f0e232a3ec +MISC ChangeLog 2833 SHA256 9f2b4f64d9bc56aa068307a79d89a7ae3afff7db6033a905e4e39db761b4277c SHA512 f1eda4bb72aecca01e8705736d4c08407f9a6887f9925faa16ceafda875a2ef20fb50118cae6c06e3ee72bbe6f185baaa4e3db8b526c99099f5c46119cb6be0d WHIRLPOOL ca43d66878cbb8884c41ea44196bc84b10a0e1a4043091f9a562f74d5d6829f44db702942983c70e6998a6bf1708f8a2bcd21bff6beb6ee0542ac43c35e4a5b6 +MISC ChangeLog-2015 3846 SHA256 0add493b85a91221063158f53566ac753fb966e7f36eaf26091ab5505d6a7d60 SHA512 e51ca19495e91104f6e50ba5c50918a93f44240dbd9bf3c58798b44f4eaf2dbfd9b883819055e6ec73f71938d724bf283d9b275bec515c4ea8b49d19353a4c55 WHIRLPOOL 285a18a371bbfd040a065796c7fce7cd958f56b5bd7b65abb5f365d60a981e884440afb2a7966fd9ddaed0bdfadace76e760f9e88e8032e95f25f16cc2f185ff +MISC metadata.xml 248 SHA256 539922f81a94f276855d6d96662251d2738694fdb65a3e473d3b15d15e3785cf SHA512 205bb9045d9fdc9cc2eaa9e7f67694a70ecd74934a9067a6de0413edbed1a1a651d8658f9d61f4a3671858445ab82616883fb6236c499072e3d6223971ac9477 WHIRLPOOL b0595f6275dd53a1a882db4b64ee18661df72d1a15192acbdf6eea571cd2ce2aa7ddfbf062a4b8ed15f322041ed042425fea4033783f0af7b16aa08635cda59c diff --git a/media-libs/libptp2/files/libptp2-1.1.10-configure.patch b/media-libs/libptp2/files/libptp2-1.1.10-configure.patch new file mode 100644 index 000000000000..d8f1260f5e34 --- /dev/null +++ b/media-libs/libptp2/files/libptp2-1.1.10-configure.patch @@ -0,0 +1,46 @@ +--- libptp2-1.1.10/configure.in.orig 2007-12-28 10:28:36.000000000 +1100 ++++ libptp2-1.1.10/configure.in 2007-12-28 10:36:14.000000000 +1100 +@@ -25,6 +25,10 @@ + + # Checks for programs. + AC_PROG_CC ++AC_PROG_INSTALL ++AC_PROG_LN_S ++AC_PROG_MAKE_SET ++AC_PROG_RANLIB + + # turn on warnings for gcc + if test "$ac_cv_prog_gcc" = "yes"; then +@@ -36,19 +40,29 @@ + + # Checks for header files. + AC_HEADER_STDC +-AC_CHECK_HEADERS([libintl.h stdlib.h string.h]) ++AC_CHECK_HEADERS([arpa/inet.h fcntl.h libintl.h stdint.h stdlib.h string.h sys/ioctl.h unistd.h utime.h]) + + # Checks for typedefs, structures, and compiler characteristics. + AC_C_CONST + AC_C_INLINE ++AC_TYPE_INT16_T ++AC_TYPE_INT32_T ++AC_TYPE_INT8_T + AC_STRUCT_TM ++AC_TYPE_UINT16_T ++AC_TYPE_UINT32_T ++AC_TYPE_UINT64_T ++AC_TYPE_UINT8_T + + # Checks for library functions. +-AC_FUNC_ERROR_AT_LINE ++AC_PROG_GCC_TRADITIONAL + AC_FUNC_MALLOC + AC_FUNC_MKTIME ++AC_FUNC_MMAP ++AC_TYPE_SIGNAL ++AC_FUNC_UTIME_NULL + AC_FUNC_VPRINTF +-AC_CHECK_FUNCS([memset strchr strdup strtol getopt_long]) ++AC_CHECK_FUNCS([memset munmap strdup strncasecmp strtol utime]) + + hostos=any + case $host in diff --git a/media-libs/libptp2/files/libptp2-1.1.10-makefile.patch b/media-libs/libptp2/files/libptp2-1.1.10-makefile.patch new file mode 100644 index 000000000000..0e7b5adec8fc --- /dev/null +++ b/media-libs/libptp2/files/libptp2-1.1.10-makefile.patch @@ -0,0 +1,11 @@ +--- libptp2-1.1.10.orig/src/Makefile.am 2005-11-01 02:39:40.000000000 +1100 ++++ libptp2-1.1.10/src/Makefile.am 2007-12-28 09:51:01.000000000 +1100 +@@ -17,7 +17,7 @@ + else + ptpcam_SOURCES = ptpcam.c ptpcam.h + endif +-ptpcam_LDADD = -lptp2 @PTPCAM_LDFLAGS@ ++ptpcam_LDADD = libptp2.la @PTPCAM_LDFLAGS@ + ptpcam_DEPENDANCIES = libptp2.la + ptpcam_CFLAGS = @PTPCAM_CFLAGS@ + endif diff --git a/media-libs/libptp2/libptp2-1.1.10.ebuild b/media-libs/libptp2/libptp2-1.1.10.ebuild new file mode 100644 index 000000000000..e41d7e0a657b --- /dev/null +++ b/media-libs/libptp2/libptp2-1.1.10.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=2 +inherit autotools eutils + +DESCRIPTION="Library and client to communicate with cameras via PTP" +HOMEPAGE="https://sourceforge.net/projects/libptp/" +SRC_URI="mirror://sourceforge/libptp/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc ppc64 x86" +IUSE="" + +RDEPEND="virtual/libusb:0" +DEPEND="${RDEPEND}" + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-makefile.patch \ + "${FILESDIR}"/${P}-configure.patch + + AT_M4DIR="m4" eautoreconf +} + +src_test() { + env LD_LIBRARY_PATH=./src/.libs/ ./src/ptpcam -l || die +} + +src_install() { + emake DESTDIR="${D}" install || die +} diff --git a/media-libs/libptp2/metadata.xml b/media-libs/libptp2/metadata.xml new file mode 100644 index 000000000000..feb5e592cfea --- /dev/null +++ b/media-libs/libptp2/metadata.xml @@ -0,0 +1,8 @@ + + + + + + libptp + + -- cgit v1.2.3