Commit 378e3717 authored by satmandu's avatar satmandu Committed by GitHub

libiconv: move headers to different location (#5097)

parent 6b5d03da
......@@ -8,23 +8,24 @@ class Libiconv < Package
source_url 'https://ftpmirror.gnu.org/libiconv/libiconv-1.16.tar.gz'
source_sha256 'e6a1b1b589654277ee790cce3734f07876ac4ccfaecbee8afa0b649cf529cc04'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libiconv-1.16-4-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libiconv-1.16-4-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/libiconv-1.16-4-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libiconv-1.16-4-chromeos-x86_64.tar.xz',
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libiconv-1.16-4-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libiconv-1.16-4-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/libiconv-1.16-4-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libiconv-1.16-4-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
aarch64: '856c11ac045ce6c053e13e9bf1e1b4342a3426c32213a3d3337a214fa6cf86c0',
armv7l: '856c11ac045ce6c053e13e9bf1e1b4342a3426c32213a3d3337a214fa6cf86c0',
i686: '0929057c23923347d7090a6d9852bc1c1c99f3124bd5a30fcc6ac8b440f2bc36',
x86_64: '6c390d85b7570fa2dd97c3d33ace2f28ee55677f5b6f2513f05220b50eb55570',
binary_sha256({
aarch64: '3328a5694b7eb6d44bfad79129aacb36f564ed597f31aafb54615635d50e1560',
armv7l: '3328a5694b7eb6d44bfad79129aacb36f564ed597f31aafb54615635d50e1560',
i686: 'efb5c2b71144f1cd413360a87634cf4a81dbcad568186315fb3d127460b68e65',
x86_64: '378d0566c86141072f0b57f7aaf1e3bc7cac4c5dc88b4f9a441b5302fa549cc6'
})
def self.build
system "env CFLAGS='-flto=auto -ltinfo' CXXFLAGS='-flto=auto' \
LDFLAGS='-flto=auto' \
./configure #{CREW_OPTIONS} \
--includedir=#{CREW_PREFIX}/include/gnu-libiconv \
--enable-static \
--enable-relocatable \
--enable-extra-encodings"
......@@ -33,9 +34,8 @@ class Libiconv < Package
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
# Don't remove iconv.h. Better not to have this installed if you don't
# want a comflict.
# Remove iconv.h which conflicts with same file from glibc
# FileUtils.rm "#{CREW_DEST_PREFIX}/include/iconv.h"
FileUtils.mv "#{CREW_DEST_PREFIX}/bin/iconv", "#{CREW_DEST_PREFIX}/bin/gnu-libiconv-iconv"
# Header files are moved to #{CREW_PREFIX}/include/gnu-libiconv
# to avoid conflict with versions from glibc
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment