fixed ebuilds broken by carelessly "converting" them to EAPI6
This commit is contained in:
@@ -4,9 +4,7 @@
|
||||
|
||||
EAPI="6"
|
||||
|
||||
AUTOTOOLS_AUTORECONF=1
|
||||
|
||||
inherit autotools-multilib eutils
|
||||
inherit autotools eutils multilib-minimal
|
||||
|
||||
DESCRIPTION="The Battle.net client library"
|
||||
HOMEPAGE="http://code.google.com/p/bncsutil"
|
||||
@@ -22,7 +20,19 @@ IUSE="static-libs"
|
||||
DEPEND="dev-libs/gmp[static-libs?,${MULTILIB_USEDEP}]"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-werror.patch"
|
||||
"${FILESDIR}/${PN}-ghost.patch"
|
||||
)
|
||||
src_prepare() {
|
||||
eapply "${FILESDIR}/${PN}-werror.patch"
|
||||
eapply "${FILESDIR}/${PN}-ghost.patch"
|
||||
eautoreconf
|
||||
default
|
||||
multilib_copy_sources
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
econf $(use_enable static-libs static)
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
default
|
||||
prune_libtool_files
|
||||
}
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
Index: src/bncsutil/bsha1.cpp
|
||||
===================================================================
|
||||
--- src/bncsutil/bsha1.cpp (revision 5)
|
||||
+++ src/bncsutil/bsha1.cpp (working copy)
|
||||
--- a/src/bncsutil/bsha1.cpp
|
||||
+++ b/src/bncsutil/bsha1.cpp
|
||||
@@ -141,7 +141,7 @@
|
||||
|
||||
MEXP(void) calcHashBuf(const char* input, size_t length, char* result) {
|
||||
@@ -11,10 +9,8 @@ Index: src/bncsutil/bsha1.cpp
|
||||
uint32_t* ldata;
|
||||
char data[1024];
|
||||
memset(data, 0, 1024);
|
||||
Index: src/bncsutil/cdkeydecoder.cpp
|
||||
===================================================================
|
||||
--- src/bncsutil/cdkeydecoder.cpp (revision 5)
|
||||
+++ src/bncsutil/cdkeydecoder.cpp (working copy)
|
||||
--- a/src/bncsutil/cdkeydecoder.cpp
|
||||
+++ b/src/bncsutil/cdkeydecoder.cpp
|
||||
@@ -31,7 +31,8 @@
|
||||
#include <cctype> // for isdigit(), isalnum(), and toupper()
|
||||
#include <cstring> // for memcpy()
|
||||
@@ -43,10 +39,8 @@ Index: src/bncsutil/cdkeydecoder.cpp
|
||||
table[a] = (decode / 5);
|
||||
table[b] = (decode % 5);
|
||||
}
|
||||
Index: src/bncsutil/checkrevision.cpp
|
||||
===================================================================
|
||||
--- src/bncsutil/checkrevision.cpp (revision 5)
|
||||
+++ src/bncsutil/checkrevision.cpp (working copy)
|
||||
--- a/src/bncsutil/checkrevision.cpp
|
||||
+++ b/src/bncsutil/checkrevision.cpp
|
||||
@@ -83,13 +83,14 @@
|
||||
checkrevision_seeds.push_back(0x11BF6A18);
|
||||
checkrevision_seeds.push_back(0xC57292E6);
|
||||
@@ -174,10 +168,8 @@ Index: src/bncsutil/checkrevision.cpp
|
||||
|
||||
switch (platform) {
|
||||
case BNCSUTIL_PLATFORM_X86:
|
||||
Index: src/bncsutil/debug.c
|
||||
===================================================================
|
||||
--- src/bncsutil/debug.c (revision 5)
|
||||
+++ src/bncsutil/debug.c (working copy)
|
||||
--- a/src/bncsutil/debug.c
|
||||
+++ b/src/bncsutil/debug.c
|
||||
@@ -18,7 +18,7 @@
|
||||
#include <time.h>
|
||||
#endif
|
||||
@@ -273,10 +265,8 @@ Index: src/bncsutil/debug.c
|
||||
return (size_t) 0;
|
||||
return (size_t) info.dwSize.X;
|
||||
#else
|
||||
Index: src/bncsutil/debug.h
|
||||
===================================================================
|
||||
--- src/bncsutil/debug.h (revision 5)
|
||||
+++ src/bncsutil/debug.h (working copy)
|
||||
--- a/src/bncsutil/debug.h
|
||||
+++ b/src/bncsutil/debug.h
|
||||
@@ -6,86 +6,99 @@
|
||||
* April 1, 2006
|
||||
*/
|
||||
@@ -444,10 +434,8 @@ Index: src/bncsutil/debug.h
|
||||
-
|
||||
-#endif /* DEBUG */
|
||||
\ No newline at end of file
|
||||
Index: src/bncsutil/file.cpp
|
||||
===================================================================
|
||||
--- src/bncsutil/file.cpp (revision 5)
|
||||
+++ src/bncsutil/file.cpp (working copy)
|
||||
--- a/src/bncsutil/file.cpp
|
||||
+++ b/src/bncsutil/file.cpp
|
||||
@@ -44,7 +44,7 @@
|
||||
DWORD access;
|
||||
DWORD share_mode;
|
||||
@@ -616,10 +604,8 @@ Index: src/bncsutil/file.cpp
|
||||
return;
|
||||
}
|
||||
|
||||
Index: src/bncsutil/keytables.h
|
||||
===================================================================
|
||||
--- src/bncsutil/keytables.h (revision 5)
|
||||
+++ src/bncsutil/keytables.h (working copy)
|
||||
--- a/src/bncsutil/keytables.h
|
||||
+++ b/src/bncsutil/keytables.h
|
||||
@@ -128,4 +128,4 @@
|
||||
} // extern "C"
|
||||
#endif
|
||||
@@ -627,10 +613,8 @@ Index: src/bncsutil/keytables.h
|
||||
-#endif /* BNCSUTIL_KEYTABLES_H */
|
||||
\ No newline at end of file
|
||||
+#endif /* BNCSUTIL_KEYTABLES_H */
|
||||
Index: src/bncsutil/libinfo.cpp
|
||||
===================================================================
|
||||
--- src/bncsutil/libinfo.cpp (revision 5)
|
||||
+++ src/bncsutil/libinfo.cpp (working copy)
|
||||
--- a/src/bncsutil/libinfo.cpp
|
||||
+++ b/src/bncsutil/libinfo.cpp
|
||||
@@ -49,9 +49,8 @@
|
||||
rev = ver;
|
||||
if (rev > 99 || rev < 0) return 0;
|
||||
@@ -643,10 +627,8 @@ Index: src/bncsutil/libinfo.cpp
|
||||
}
|
||||
-
|
||||
\ No newline at end of file
|
||||
Index: src/bncsutil/mutil.h
|
||||
===================================================================
|
||||
--- src/bncsutil/mutil.h (revision 5)
|
||||
+++ src/bncsutil/mutil.h (working copy)
|
||||
--- a/src/bncsutil/mutil.h
|
||||
+++ b/src/bncsutil/mutil.h
|
||||
@@ -27,6 +27,9 @@
|
||||
#ifndef MUTIL_H
|
||||
#define MUTIL_H
|
||||
@@ -679,10 +661,8 @@ Index: src/bncsutil/mutil.h
|
||||
+// #include <bncsutil/debug.h>
|
||||
|
||||
#endif /* MUTIL_H */
|
||||
Index: src/bncsutil/mutil_types.h
|
||||
===================================================================
|
||||
--- src/bncsutil/mutil_types.h (revision 5)
|
||||
+++ src/bncsutil/mutil_types.h (working copy)
|
||||
--- a/src/bncsutil/mutil_types.h
|
||||
+++ b/src/bncsutil/mutil_types.h
|
||||
@@ -26,6 +26,10 @@
|
||||
#ifndef BNCSUTIL_MUTIL_TYPES_H_INCLUDED
|
||||
#define BNCSUTIL_MUTIL_TYPES_H_INCLUDED
|
||||
@@ -701,10 +681,8 @@ Index: src/bncsutil/mutil_types.h
|
||||
+#endif /* WIN32 */
|
||||
+
|
||||
#endif /* BNCSUTIL_MUTIL_TYPES_H_INCLUDED */
|
||||
Index: src/bncsutil/oldauth.cpp
|
||||
===================================================================
|
||||
--- src/bncsutil/oldauth.cpp (revision 5)
|
||||
+++ src/bncsutil/oldauth.cpp (working copy)
|
||||
--- a/src/bncsutil/oldauth.cpp
|
||||
+++ b/src/bncsutil/oldauth.cpp
|
||||
@@ -64,4 +64,4 @@
|
||||
bncsutil_debug_message_a("hashPassword(\"%s\") =", password);
|
||||
bncsutil_debug_dump(outBuffer, 20);
|
||||
@@ -712,10 +690,8 @@ Index: src/bncsutil/oldauth.cpp
|
||||
-}
|
||||
\ No newline at end of file
|
||||
+}
|
||||
Index: src/bncsutil/oldauth.h
|
||||
===================================================================
|
||||
--- src/bncsutil/oldauth.h (revision 5)
|
||||
+++ src/bncsutil/oldauth.h (working copy)
|
||||
--- a/src/bncsutil/oldauth.h
|
||||
+++ b/src/bncsutil/oldauth.h
|
||||
@@ -46,4 +46,4 @@
|
||||
} // extern "C"
|
||||
#endif
|
||||
@@ -723,10 +699,8 @@ Index: src/bncsutil/oldauth.h
|
||||
-#endif /* BNCSUTIL_OLDAUTH_H */
|
||||
\ No newline at end of file
|
||||
+#endif /* BNCSUTIL_OLDAUTH_H */
|
||||
Index: src/bncsutil/pe.c
|
||||
===================================================================
|
||||
--- src/bncsutil/pe.c (revision 5)
|
||||
+++ src/bncsutil/pe.c (working copy)
|
||||
--- a/src/bncsutil/pe.c
|
||||
+++ b/src/bncsutil/pe.c
|
||||
@@ -37,7 +37,7 @@
|
||||
cm_pe_optional_header_t* opt_header;
|
||||
cm_pe_windows_header_t* win_header;
|
||||
@@ -761,10 +735,8 @@ Index: src/bncsutil/pe.c
|
||||
-}
|
||||
\ No newline at end of file
|
||||
+}
|
||||
Index: src/bncsutil/stack.c
|
||||
===================================================================
|
||||
--- src/bncsutil/stack.c (revision 5)
|
||||
+++ src/bncsutil/stack.c (working copy)
|
||||
--- a/src/bncsutil/stack.c
|
||||
+++ b/src/bncsutil/stack.c
|
||||
@@ -20,7 +20,8 @@
|
||||
* A copy of the GNU Lesser General Public License is included in the BNCSutil
|
||||
* distribution in the file COPYING. If you did not receive this copy,
|
||||
@@ -782,10 +754,8 @@ Index: src/bncsutil/stack.c
|
||||
-}
|
||||
\ No newline at end of file
|
||||
+}
|
||||
Index: src/bncsutil/stack.h
|
||||
===================================================================
|
||||
--- src/bncsutil/stack.h (revision 5)
|
||||
+++ src/bncsutil/stack.h (working copy)
|
||||
--- a/src/bncsutil/stack.h
|
||||
+++ b/src/bncsutil/stack.h
|
||||
@@ -51,4 +51,4 @@
|
||||
void* cm_stack_peek(cm_stack_t stack);
|
||||
unsigned int cm_stack_size(cm_stack_t stack);
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
Index: configure.ac
|
||||
===================================================================
|
||||
--- configure.ac (revision 5)
|
||||
+++ configure.ac (working copy)
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -1,6 +1,6 @@
|
||||
AC_INIT([bncsutil], [1.3.2], [bugs@example.com])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user